gpt4 book ai didi

c# - 找不到引用系统

转载 作者:太空狗 更新时间:2023-10-29 20:19:19 25 4
gpt4 key购买 nike

所以我使用 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 之外,还有什么解决方案吗?

最佳答案

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

It is dangerous and totally unsupported to overwrite parts of MSBuild 15.6 with parts of MSBuild 15.5. All sorts of other things could break.


终于修好了!

由于更新到 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 的同事那里获取以前的版本。

关于c# - 找不到引用系统,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49155821/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com