简体   繁体   English

Visual Studio 2017无法建立专案

[英]Visual Studio 2017 not building project

I have a solution with .net core 2.0 project and .net framework 6.0 projects referenced inside the .net core 2.0 project 我在.net core 2.0项目中引用了.net core 2.0项目和.net framework 6.0项目的解决方案

It was building fine, then a colleague faced a situation where project started to fail building using visual studio and he had to build it using: dotnet build in cmd. 它的构建很好,然后一位同事遇到了这样的情况:项目开始无法使用Visual Studio进行构建,因此他必须使用以下命令进行构建: dotnet build in cmd。

This issue travelled through source control to hit me too. 这个问题也通过源代码控制打到了我。

This is the error I am getting when trying to build. 这是我尝试构建时遇到的错误。

project.assets.json' not found. 找不到project.assets.json。 Run a NuGet package restore to generate this file. 运行NuGet软件包还原以生成此文件。

供其他参考,通过将Visual Studio更新到v15.5.2解决了此问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM