我们的项目已更新为使用.net 4.0中的.net 4.5.1。在我的VS 2012中下载并更新.net 4.5.1后,我最终得到以下错误。任何人都可以帮助解决问题
The "TransformXml" task failed unexpectedly.
System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Web.XmlTransform, Version=1.4.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
File name: 'Microsoft.Web.XmlTransform, Version=1.4.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
at Microsoft.Web.Publishing.Tasks.TransformXml.Execute()
at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__20.MoveNext()
答案 0 :(得分:2)
最后我得到了修复。
Webtools 2013.1软件包是在我们的电脑上安装Microsoft.Web.XmlTransform的软件包,而dll应该位于“C:\ Program Files(x86)\ MSBuild \ Microsoft \ VisualStudio \ v11.0 \ Web”文件夹中
只需从另一台PC vs2012复制并替换dll文件即可解决问题。
答案 1 :(得分:0)
确保已安装Microsoft Web Tools for 4.5.1
确保dll(具有相应的版本号)位于&#34; C:\ Program Files(x86)\ MSBuild \ Microsoft \ VisualStudio \ v11.0 \ Web&#34;