Search code examples
visual-studiomsbuildvdproj

How to use VS 2015 MSBuild to build .vdproj


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?


Solution

  • 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.