错误 MSB4062:无法从程序集 MSBuild.ExtensionPack.Iis7.dll 加载 "MSBuild.ExtensionPack.Web.Iis7Application" 任务
error MSB4062: The "MSBuild.ExtensionPack.Web.Iis7Application" task could not be loaded from the assembly MSBuild.ExtensionPack.Iis7.dll
尝试使用 msbuild 构建我的应用程序时收到此错误:
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.
本来以为是MSBuild扩展包的问题,结果发现需要添加IIS:
尝试使用 msbuild 构建我的应用程序时收到此错误:
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.
本来以为是MSBuild扩展包的问题,结果发现需要添加IIS: