I'm trying to compile windows project from visual studio 2010 (64) on windows 7 in c++ from command line, but I can't find msbuild.exe, where is it?
For a typical default installation on Windows 10, MSBuild.exe is under the installation folder in MSBuild\Current\Bin.
Click on System and Security and then on System. In the left pane, click on Advanced system settings. At the very bottom of the pop up, click on Environment Variables. Edit the Path variable and append the folder's path that contains the MSBuild.exe to it (e.g., ;C:\Windows\Microsoft.NET\Framework64\v4.
To enable msbuild in Command Prompt, you simply have to add the directory of the msbuild.exe install on your machine to the PATH environment variable.
It is installed as part of . NET (Full Framework, not just Client Profile), you don't need SDK.
It should be installed as part of .NET 4... so for example, in
c:\Windows\Microsoft.NET\Framework\v4.0.30319
... but if you start a "Visual Studio Command Prompt" instead of just running cmd, it should be in the path already. That's what I'd suggest you do - I always have Visual Studio Command Prompt as a shortcut pinned to my task bar; I have no reason to launch a command prompt which doesn't have the relevant path :)
As of 2013 msbuild ships with Visual Studio:
C:\Program Files (x86)\MSBuild\14.0\Bin\MSBuild.exe
C:\Program Files (x86)\MSBuild\12.0\Bin\MSBuild.exe
Before that msbuild shipped with the .NET Framework, up to version 4.5.1:
C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With