[vs2012] ("ImportParametersFile" 工作發生未預期的失敗。) vs2012 不能自動Deploy

  • 611
  • 0

摘要:[vs2012] ("ImportParametersFile" 工作發生未預期的失敗。) vs2012 不能自動Deploy

錯誤	58	"ImportParametersFile" 工作發生未預期的失敗。
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. 系統找不到指定的檔案。
檔案名稱: 'Microsoft.Web.XmlTransform, Version=1.4.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
   於 Microsoft.Web.Publishing.Tasks.ImportParametersFile.Execute()
   於 Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
   於 Microsoft.Build.BackEnd.TaskBuilder.d__20.MoveNext()

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

 

解決方法:


把Microsoft.Web.XmlTransform.dll 覆蓋至 C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\Web

 

參考

檔案下載