How to use VS 2015 MSBuild to build .vdproj
Asked Answered
T

2

9

With VS 2010 or 2013, We can use this command to build .vdproj project(VSI):

<Exec Command="&quot;$(ProgramFiles)\Microsoft Visual Studio 9.0\Common7\IDE\devenv.com&quot; your.vdproj /build &quot;Debug|AnyCPU&quot;"/>

But in vs 2015, the VSI is an extension of vs. And the similar command(9.0 => 14.0) will get an error.

Anybody know how to solve it?

Tiernan answered 10/12, 2015 at 8:34 Comment(1)
MSBuild cannot build .vdproj projects. You should use Visual Studio (devenv.com) for this.Vesperal
T
6

I solved this problem by change the DWORD value for

HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\14.0_Config\MSBuild\EnableOutOfProcBuild

registry value to 0.

If this doesn't exist you can create it as a DWORD.

Tiernan answered 11/12, 2015 at 10:4 Comment(1)
where are you adding the DWORD value?Vorous
H
11

Microsoft Visual Studio 2015 Installer Projects extension must be installed.

Hadlee answered 10/12, 2015 at 16:40 Comment(2)
I have installed it and the vdproj can be built in VS. And now I want to build it by command line.Tiernan
Finally, I use vs 2013 to do the command line compile. Thank you.Tiernan
T
6

I solved this problem by change the DWORD value for

HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\14.0_Config\MSBuild\EnableOutOfProcBuild

registry value to 0.

If this doesn't exist you can create it as a DWORD.

Tiernan answered 11/12, 2015 at 10:4 Comment(1)
where are you adding the DWORD value?Vorous

© 2022 - 2024 — McMap. All rights reserved.