2016-02-26 48 views
1

這個問題已發佈過幾次,但問題的答案爲我做什麼,這裏是我得到的編譯:BuildTasks.csc 2015年

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. 

它的工作之前,現在當我打開它,我得到這個錯誤。

我沒有像某些用戶所建議的那樣使用存儲庫,我也重新啓動並清理了解決方案,從解決方案文件夾中刪除nuget軟件包也什麼都不做。

這裏有什麼問題?

回答

0

您好,您的問題是您在解決方案中缺少對「Microsoft.CodeAnalysis.BuildTasks.Csc」文件的引用。如果您有項目的備份,請嘗試從以前的備份中獲取文件,以便再次創建程序可執行文件。