7

我幾乎南特腳本一起,將建立和部署數據庫VS2010的項目,但一個錯誤矗立在我的方式:獲取的MSBuild和CruiseControl的.NET建立和部署數據庫VS2010項目

C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\TeamData\Microsoft.Data.Schema.TSqlTasks.targets(56,5): 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. [xxx] 
Failed to start MSBuild. 
External Program Failed: C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\msbuild.exe (return code was 1) 

我可以看到Microsoft.Data.Schema程序集不在構建服務器上的MSIL GAC中 - 是否有任何干淨的方法可以在構建服務器上完成VS2010的全部運費安裝?

回答

13

對於好奇,我問巴克山在微軟誰回答了這個對我來說:

不能在 機建立數據庫項目,除非他們有VS或TFS 2010安裝在他們身上。這不是 支持的方案。您可以部署 數據庫項目構建輸出而不使用 使用vsdbcmd安裝VS/TFS。 唯一的方法可以做到這一點,並在 與 許可和支持是 如果不使用 TFS安裝VS Pro或 較高的本地副本在您的生成框。

+3

TFS很棒。但它不是那裏唯一的構建工具。我的規則是在構建箱上沒有VS200x或201x。所以所有的依賴關係都不是「隱藏」的......(當然,不要爲你生氣(布蘭登),謝謝你的信息。))微軟幫我謀生,但是男人,每隔一段時間他們就會得到我的山羊。 PS Upvote回覆。 – granadaCoder 2012-04-04 14:26:35

相關問題