使用 Visual Studio 2015 构建 .vdproj 不会创建输出文件 (.msi)

Building .vdproj with Visual Studio 2015 does not create output files (.msi)

我正在使用 devenv 构建 vdproj。命令运行没有错误,但没有生成带有 .msi 文件的输出,我做错了什么?

devenv "C:\Projects\MyProj\Main\Src\MyProj\MyProj.sln" 
/build "'PRO VERSION|Mixed Platforms'" 
/project "C:\Projects\MyProj\Main\Src\MyProj\MyProj.Setup\MyProj.Setup.vdproj"
/projectconfig "'PRO VERSION|Mixed Platforms'"

我运行它反对Visual Studio14.0/Common7/IDE/devenv

我能够通过添加以下注册表值使其正常工作:

Try
{
    New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\VisualStudio.0_Config\MSBuild\" -Name "EnableOutOfProcBuild" -Value 00000000 -PropertyType DWORD -Force | Out-Null
}
Catch
{
    $ErrorMessage2 = $_.Exception.Message
    "ERROR adding 'EnableOutOfProcBuild' registry value, error: $ErrorMessage2"
}

然后 运行 以下:

$devenv = "C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\devenv";

    $config = "$ConfigurationMode|$Platform";
     & $devenv ($SolutionPath, "/project", $SetupProjectPath, "/build", "$config")