Building SSIS .dtproj inside a VSTS Hosted Build Agent

白昼怎懂夜的黑 提交于 2019-12-08 11:44:39

问题


I'm trying to build a SSIS 2016 project, that's been configured with the Project Deployment model in a VSTS build with the intent to deploy the .ispac file onto a SQL Server VM hosted in Azure.

Using MSBuild to build the project file returns the following error:

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.

I found a blog post here describing the same issue

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

However, the solution depends on installed SQL Server Data Tools into a build agent.

Is there a method where I can use a VSTS Hosted agent, and not have to create an on-premises agent with SSDT installed?


回答1:


Just released new Extension for VSTS/TFS

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

It build Visual Studio project, containing packages and parameters to a project deployment file (.ispac)

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




回答2:


For similar scenario i used devenv.exe

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

Arguments : .\Code\Database\NameOfSolution.sln /build $(BuildConfiguration)

devenv.exe /build does not require ssdt to installed on build agent




回答3:


Looks like Microsoft is not supporting this just yet based off UserVoice

https://visualstudio.uservoice.com/forums/330519-team-services/suggestions/11543292-install-sql-server-data-tools-ssdt-for-sql-serve

https://visualstudio.uservoice.com/forums/330519-team-services/suggestions/4850300-install-sql-server-data-tools-for-bi-on-the-team-f



来源:https://stackoverflow.com/questions/37967748/building-ssis-dtproj-inside-a-vsts-hosted-build-agent

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!