找不到参考系统

时间:2018-03-07 15:39:22

标签: c# visual-studio reference visual-studio-2017 system

所以我使用Visual Studio 2017,一切正常。但随后我更新到15.6.0,突然间什么都没有了。

Systme。*或Microsoft。*等所有引用都带有黄色警告标志......

在每个项目 - 甚至是新项目 - 我(重新)建设后我都会得到相同类型的错误:

The "ResolveAssemblyReference" task could not be initialized with its input parameters

The "ResolveAssemblyReference" task could not be initialized with its input parameters      

The "FindDependenciesOfExternallyResolvedReferences" parameter is not supported by the "ResolveAssemblyReference" task. Verify the parameter exists on the task, and it is a settable public instance property          

This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them

我尝试重新安装Visual Studio 2017,重新安装.NET Framework,但我仍然每个 C#项目上出现这类错误......

在完全重新安装Windows之后是否有任何解决方案?

1 个答案:

答案 0 :(得分:7)

社区编辑(下面的尼克评论 - 重要警告):

  

使用部分MSBuild 15.5覆盖部分MSBuild 15.6是危险的,完全没有支持。各种其他事情都可能破裂。

最后解决了!

此文件因更新到15.6.0而以某种方式损坏:

C:\Program Files (x86)\Microsoft Visual Studio\2017\EnterpriseWMSBuild\15.0\bin\Microsoft.Common.CurrentVersion.targets

C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets

将该文件替换为以前的版本,并修复了所有错误!

从尚未更新Visual Studio的同事那里获取以前的版本。