与 devenv 一起使用时,TFS PowerShell 任务不产生输出

TFS PowerShell task not producing output when used with devenv

我无法使用 MSBuild 编译 SSIS 项目,因为它还不受支持。因此, 我正在尝试使用 VS2017 devenv.exe 通过 PowerShell 在我的 TFS (2017) 任务中编译 SSIS 项目。我没有看到任何错误,但也没有看到 dtproj 文件(即 dtsx 或 ispac)的编译输出。

但是,如果我 运行 在构建代理计算机上手动执行相同的 powershell 命令,那么它可以正常工作并生成输出文件。这是我正在尝试的命令:

$VsIdeExe = 'C:\Program Files (x86)\Microsoft Visual Studio17\Enterprise\Common7\IDE\devenv.exe'
$BuildConfiguration = 'Development'
$PackageStagingLogsDirectory = "C:\temp\logs"

& "$VsIdeExe" "C:\temp\Source\SSIS\MyData.sln" /build "$BuildConfiguration" `
/log "$PackageStagingLogsDirectory\MyData.ide.log" `
/out "$PackageStagingLogsDirectory\MyData.sln.log"

我在这里错过了什么?

我找到了一个替代方案并且它有效。因此,我没有使用 PowerShell 任务,而是使用了 命令行任务,它的效果非常棒!我不知道这两个任务之间的机制有何不同,但我的用例就足够了。 谢谢!