C# 未在Visual Studio 2015中加载BuildTasks.csc
这个问题已经贴了好几次了,但答案对我来说毫无用处,下面是我在编译中得到的:C# 未在Visual Studio 2015中加载BuildTasks.csc,c#,nuget,C#,Nuget,这个问题已经贴了好几次了,但答案对我来说毫无用处,下面是我在编译中得到的: Severity Code Description Project File Line Suppression State Error The "Microsoft.CodeAnalysis.BuildTasks.Csc" task could not be loaded from the assembly C:\Program Files (x86)\MSBuild\14.0\bin
Severity Code Description Project File Line Suppression State
Error The "Microsoft.CodeAnalysis.BuildTasks.Csc" task could not be loaded from the assembly C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Build.Tasks.CodeAnalysis.dll. Could not load file or assembly 'file:///C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Build.Tasks.CodeAnalysis.dll' or one of its dependencies. The system cannot find the file specified. Confirm that the <UsingTask> declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask.
严重性代码描述项目文件行抑制状态
错误:无法从程序集C:\Program Files(x86)\MSBuild\14.0\bin\Microsoft.Build.Tasks.CodeAnalysis.dll加载“Microsoft.CodeAnalysis.BuildTasks.Csc”任务。无法加载文件或程序集的file:///C:\程序文件(x86)\MSBuild\14.0\bin\Microsoft.Build.Tasks.CodeAnalysis.dll'或其依赖项之一。系统找不到指定的文件。确认声明正确,程序集及其所有依赖项可用,并且任务包含实现Microsoft.Build.Framework.ITask的公共类。
它以前工作,现在当我打开它,我得到这个错误
我没有像一些用户建议的那样使用存储库,我还重新启动并清理了解决方案,从解决方案文件夹中删除nuget包也没有任何作用
这里有什么问题?您好,您的问题是您的解决方案中缺少对“Microsoft.CodeAnalysis.BuildTasks.Csc”文件的引用。如果您有项目的备份,请尝试从以前的备份中获取文件,以便再次创建可执行程序。您好,您的问题是您的解决方案中缺少对“Microsoft.CodeAnalysis.BuildTasks.Csc”文件的引用。如果您有项目的备份,请尝试从以前的备份中获取文件,以便再次创建可执行程序。这不是项目级文件,而是MS toolkit。用户似乎缺少一些包这不是项目级文件,而是MS工具包。用户似乎缺少某些软件包您是否尝试过解决方案级菜单上的Nuget Package Restore?您是否尝试过解决方案级菜单上的Nuget Package Restore?