我一直困扰着 .Net core 2.1.2 更新。我们有一个 .Net 核心项目,我们正在两台不同的机器上开发它(win 10.0.17),有趣的事情来了;他有相同的项目,甚至相同的 sdk 和运行时更新,甚至还有vs2017 15.7.5更新。他可以毫无错误地运行和构建 Web Api,但我在 buildError 的图像名称中显示了几个问题。
第一的
第二
第三
最后构建错误
Error The project was restored using Microsoft.NETCore.App version 2.1.2, but with current settings, version 2.1.0 would be used instead. To resolve this issue, make sure the same settings are used for restore and for subsequent operations such as build or publish. Typically this issue can occur if the RuntimeIdentifier property is set during build or publish but not during restore.
哦,别忘了,这是我尝试添加新控制器时的错误。
如果我们解决了这个问题,我将不胜感激。
注意:我已经清除了 nuget 缓存文件。并没有工作。
下面,我的 csproj :
泛舟湖上清波郎朗
相关分类