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

相关问题