簡體   English   中英

錯誤“SQLBuildTask”任務無法從asssembly“Microsoft.Data.Schema.Tasks.Sql”加載

[英]Error “SQLBuildTask” Task could not be loaded from the asssembly 'Microsoft.Data.Schema.Tasks.Sql'

我正在嘗試使用msbuild.exe構建一個db項目,該項目在運行Windows Server 2008 R2 Enterprise for 64位操作系統的VM上運行。 我的大多數應用程序都在成功構建,這個DB項目給我帶來了問題。 安裝了.NET Framework 2和4。

error MSB4062: The "SqlBuildTask" task could not be loaded from the assembly Microsoft.Data.Schema.Tasks.Sql, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a. Could not load file or assembly 'Microsoft.Data.Schema.Tasks.Sql, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' 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.

我已經在這個站點上檢查了一個可能的解決方案: 獲取MSBuild和CruiseControl .NET來構建和部署VS2010數據庫項目

但是我的構建機器上安裝了VS2010,我仍然遇到此錯誤

我已經做過的事情:

  • 檢查數據庫項目的解決方案是否在VS2010中成功構建
  • 使用msbuild MyDBtest.dbproj運行msbuild命令 - 這給了我同樣的錯誤。

為了讓這個工作起來,還有什么我可以遺漏的?

事實證明我正在為dbproj執行錯誤版本的MSbuild我需要使用C:\\ Windows \\ Microsoft.NET \\ Framework64 \\ v4.0.30319而不是C:\\ Windows \\ Microsoft.NET \\ Framework64 \\ v2.0.50727 。 早期版本不支持.dbproj類型。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM