Creating a Visual Studio Express 11 project from the command line

So far, I have had the following methodology for creating my C ++ projects from the command line (goal: nightly build with jenkins with the same configuration as a regular project):

devenv MySolution.sln /build "Release" /project "MyProject" 

or from the express version:

 VCExpress MySolution.sln /build "Release" /project "MyProject" 

Now I recently got a VC11 express for the desktop and apparently this is not the same executable (I think the equivalent of VCExpress.exe is WDExpress.exe, am I wrong?), This is not the same command line (this something like WDExpress MyProject.vcxproj / Build), and build logs are not output to standard output (they may be available elsewhere).

So, I'm just wondering if I'm missing something?

Maybe this is not WDExpress.exe that should be called?

+4
source share
1 answer

I had the same problem as now. I think we should use msbuild.exe. This is also a more general approach since you do not need to switch between vcexpress and wdexpress. I'm not even sure that wdexpress.exe no longer supports the creation of sln files (from the command line)

Anyway, here is the information about msbuild.exe http://msdn.microsoft.com/en-us/library/ee662426.aspx

I tried it and it works. Location of msbuild.exe on my machine: Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe This clearly depends on the .net version, so now I'm looking for a way to get the path to msbuild.exe from an environment variable or something like that .

+2
source

Source: https://habr.com/ru/post/1442947/


All Articles