2017-09-15 89 views
3

我创建了一个powershell脚本来自动部署SSIS项目并将其用于自定义tfs任务。在这个任务我用的MSBuild步打造SSIS项目,该项目一直得到这个错误:我在建项目SSIS在Visual Studio 2015年就好了部署SSIS中的MSBuild错误

Error MSB4067: The element DeploymentModel beneath element Project is unrecognized.

。我试过msbuild版本12.0和15.0,他们都有相同的错误。 谢谢

+1

[使用visual studio在线构建定义构建SSIS解决方案... .dtproj不受MSBuild支持,无法构建](https://stackoverflow.com/questions/44410829/building-ssis-solution-使用-visual-studio-online-build-definition-dtproj-is) –

回答

1

当你通过VS构建你的SSIS项目时,实际上是调用/Build (devenv.exe),而不是直接使用MSBuild。

没有内置任务支持通过devenv.exe构建。仍然待办事项。更多详细信息请参考:"Visual Studio Build" build step that actually invokes devenv.com instead of msbuild?

作为解决方法,您现在可以尝试使用3方扩展任务SSIS Build & Deploy

+0

谢谢!我最终使用powershell来调用构建服务器上的devenv.com。效果很好。再次感谢你的帮助。 – user7400346