我正在尝试使用构建服务器上的Visual Studio 2012构建一个SSIS项目(* .dtproj).
据我所知,没有人支持使用MSBuild直接构建这种项目.
但我的想法是,如果我可以在本地使用Visual Studio 2012 IDE构建它,我将能够使用Visual Studio命令行(直接从构建服务器上的命令行调用devenv.exe / devenv.com)来构建它
但我尝试了很多组合,但我找不到任何有用的东西
我一直收到以下错误:
Microsoft (R) Microsoft Visual Studio 2012 Version 11.0.60315.1.
Copyright (C) Microsoft Corp. All rights reserved.
Error: Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))
========== Build: 0 succeeded or up-to-date, 1 failed, 0 skipped ==========
这是我正在使用的命令行:
."C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\devenv.com" .\Datawarehouse_ETL.sln /ReBuild Development /Project .\Datawarehouse_ETL\Datawarehouse_ETL.dtproj /ProjectConfig Development /Log .\output.log /out .\output.log
我想我用来调用devenv.com的参数有问题
但根据MSDN
/Build (devenv.exe) This switch performs the same function as the Build Solution menu command within the integrated development environment (IDE).
Enclose strings that include spaces in double quotation marks.
Summary information for builds, including errors, can be displayed in the Command window, or in any log file specified with the /out switch.
This command only builds projects that have changed since the last build. To build all projects in a solution, use /Rebuild (devenv.exe).
我找到了几个有这个问题的论坛,但没有提出的解决方法对我有用.
BTW according to this post,devenv.com只是devenv.exe上的一个包装器,可用作命令行
我即将放弃,只需手动/本地构建解决方案并检查构建后生成的* .ispac文件,然后编写PowerShell脚本来部署=(((((
最佳答案 SSDT-BI的初始版本中存在错误,已在以下版本中修复
http://www.microsoft.com/en-us/download/details.aspx?id=36843
在此处查找Microsoft反馈网站针对上述问题的回复
http://connect.microsoft.com/SQLServer/feedback/details/781872/fail-to-build-ssis-ssas-projects-via-vs2012-command-line-devenv-exe-with-ssdt-bi-tool-installed