ASP.Net 核心 RC2 迁移 csproj 引用错误
ASP.Net core RC2 migration csproj reference errors
我有一个 utils.csproj
,我在我的 ASP.Net Core RC2
申请中引用了它。问题是虽然在运行时一切正常(因此 RC2 找到依赖项并运行它们),我什至可以调试它,在编译时 visual studio 以红色突出显示所有内容,因为它无法解析 usings
。这很奇怪,因为在 RC1 中 dnx452
一切正常。但是现在每个 using
对我的自定义组件的引用都被忽略了(你是不是误签了一个引用?),因此在 .cs
文件中每次使用它的 类 都会导致错误。当项目中的每个文件都有几十条红线,项目中的错误数量超过数百个,项目构建和运行时,但我没有智能感知,resharper 也没有工作时,很难开发。我应该在 notepad++
或其他地方编辑我的代码,因为 VS 被逼疯了,无法帮助我。
我下载了两天前发布的VS2015 Update 3,但没有修复。
我无法在 cli
中创建问题,因为 cli
没有问题 - 项目运行正常,但我不知道从哪里可以获得修补程序。但也许这里有人知道如何修复它?
我的依赖项:
"frameworks": {
"net452": {
"dependencies": {
"Services.Interfaces": {
"target": "project"
},
"NetUtils": {
"target": "project"
},
"Utils": {
"target": "project"
}
}
}
},
"runtimeOptions": {
"gcServer": true, // Yes, please perform garbage collection
"gcConcurrent": true // Yes, please do so concurrently...
},
"scripts": {
"prepublish": [ "npm install", "bower install", "gulp clean", "gulp min" ],
"postpublish": [ "dotnet publish-iis --publish-folder %publish:OutputPath% --framework %publish:FullTargetFramework%" ]
}
问题与过时的 project.json
文件有关。我重新创建了一个项目并添加了所有文件,然后修复了它。
我有一个 utils.csproj
,我在我的 ASP.Net Core RC2
申请中引用了它。问题是虽然在运行时一切正常(因此 RC2 找到依赖项并运行它们),我什至可以调试它,在编译时 visual studio 以红色突出显示所有内容,因为它无法解析 usings
。这很奇怪,因为在 RC1 中 dnx452
一切正常。但是现在每个 using
对我的自定义组件的引用都被忽略了(你是不是误签了一个引用?),因此在 .cs
文件中每次使用它的 类 都会导致错误。当项目中的每个文件都有几十条红线,项目中的错误数量超过数百个,项目构建和运行时,但我没有智能感知,resharper 也没有工作时,很难开发。我应该在 notepad++
或其他地方编辑我的代码,因为 VS 被逼疯了,无法帮助我。
我下载了两天前发布的VS2015 Update 3,但没有修复。
我无法在 cli
中创建问题,因为 cli
没有问题 - 项目运行正常,但我不知道从哪里可以获得修补程序。但也许这里有人知道如何修复它?
我的依赖项:
"frameworks": {
"net452": {
"dependencies": {
"Services.Interfaces": {
"target": "project"
},
"NetUtils": {
"target": "project"
},
"Utils": {
"target": "project"
}
}
}
},
"runtimeOptions": {
"gcServer": true, // Yes, please perform garbage collection
"gcConcurrent": true // Yes, please do so concurrently...
},
"scripts": {
"prepublish": [ "npm install", "bower install", "gulp clean", "gulp min" ],
"postpublish": [ "dotnet publish-iis --publish-folder %publish:OutputPath% --framework %publish:FullTargetFramework%" ]
}
问题与过时的 project.json
文件有关。我重新创建了一个项目并添加了所有文件,然后修复了它。