在VSTS托管构建代理中构建SSIS .dtproj

时间:2016-06-22 12:15:29

标签: ssis msbuild sql-server-data-tools azure-pipelines

我正在尝试构建一个SSIS 2016项目,该项目已在VSTS版本中配置了Project Deployment模型,目的是将.ispac文件部署到Azure中托管的SQL Server VM上。

使用MSBuild构建项目文件会返回以下错误:

The default XML namespace of the project must be the MSBuild XML namespace. 
If the project is authored in the MSBuild 2003 format, please add xmlns="http://schemas.microsoft.com/developer/msbuild/2003" to the  element. 
If the project has been authored in the old 1.0 or 1.2 format, please convert it to MSBuild 2003 format.

我在这里发现了一篇描述相同问题的博客文章

https://speaksql.wordpress.com/2013/06/07/a-journey-to-db-deployment-automaton-ssis-build-using-msbuild/

但是,该解决方案依赖于已安装的SQL Server数据工具到构建代理中。

是否有一种方法可以使用VSTS托管代理,而不必创建安装了SSDT的内部部署代理?

3 个答案:

答案 0 :(得分:1)

对于类似的情况,我使用了devenv.exe

工具:C:\ Program Files(x86)\ Microsoft Visual Studio 14.0 \ Common7 \ IDE \ devenv.exe

参数:。\ Code \ Database \ NameOfSolution.sln / build $(BuildConfiguration)

devenv.exe / build不需要在构建代理上安装ssdt

答案 1 :(得分:0)

答案 2 :(得分:0)

刚刚发布了VSTS / TFS的新扩展

https://github.com/ToxicGlobe/VSTS-SSIS-Extension

它构建Visual Studio项目,包含项目部署文件(.ispac)的包和参数

https://marketplace.visualstudio.com/items?itemName=TG.VSTS-SSIS

相关问题