2015-06-02 50 views
0

加載嘗試使用的MSBuild建立我的應用程序時收到此錯誤:錯誤MSB4062:在「MSBuild.ExtensionPack.Web.Iis7Application」任務無法從組件MSBuild.ExtensionPack.Iis7.dll

error MSB4062: The "MSBuild.ExtensionPack.Web.Iis7Application" task could not be loaded from the assembly MSBuild.ExtensionPack.Iis7.dll. Could not load file or assembly 'Microsoft.Web.Administration, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' 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. [17:37:46] [Step 1/1] 

有沒有人有什麼建議? TIA。

回答

0

原來,曾經以爲的問題是與MSBuild擴展包,但事實證明,我需要添加IIS:

enter image description here

相關問題