代码之家  ›  专栏  ›  技术社区  ›  Alex Zhukovskiy

ASP。网络核心RC2迁移csproj引用错误

  •  1
  • Alex Zhukovskiy  · 技术社区  · 9 年前

    我有一个 utils.csproj 我在我的 ASP.Net Core RC2 应用问题是,虽然所有东西在运行时都能正常工作(所以RC2可以找到依赖项并运行它们),但我甚至可以调试它,在编译时visual studio会用红色突出显示所有东西,因为它无法解决 usings .这很奇怪,因为在RC1中 dnx452 一切都在运转。但现在每 using 对我的习惯的引用被忽略了(你遗漏了引用吗?),因此,在 .cs 文件导致错误。当项目中的每个文件都有几十条红线,项目中的错误数超过数百条时,很难进行开发,当项目构建和运行时,我没有智能感知,resharper也不起作用。我只需要在中编辑我的代码 notepad++ 或者什么,因为VS被逼疯了,帮不了我。

    我下载了2天前发布的VS2015 Update 3,但它没有修复。 我无法在中创建问题 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%" ]
      }
    
    1 回复  |  直到 9 年前
        1
  •  1
  •   Alex Zhukovskiy    9 年前

    问题与过时有关 project.json 文件我重新创建了一个项目并添加了所有文件,它修复了它。