ASP.Net core RC2迁移csproj引用错误



我有一个utils.csproj,我在ASP.Net Core RC2应用程序中引用了它。问题是,虽然在运行时一切都很好(所以RC2找到依赖项并运行它们),但我甚至可以调试它,在编译时visual studio会用红色突出显示所有内容,因为它无法解决usings。这很奇怪,因为在有dnx452的RC1中,一切都在工作。但现在,对我的自定义的每一个using引用都被忽略了(你是否遗漏了一个引用?),因此在.cs文件中每次使用它的类都会导致一个错误。当项目中的每个文件都有几十条红线,项目中的错误数量超过数百时,当项目构建和运行时,很难进行开发,但我没有智能,重拍也不起作用。我只需要在notepad++或其他地方编辑我的代码,因为VS已经疯了,无法帮助我。

我下载了2天前发布的VS2015更新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文件有关。我重新创建了一个项目,并添加了所有文件,它修复了它

最新更新