Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't find msbuild.exe in visual studio 2010

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?

like image 422
Ivan Pericic Avatar asked Jan 04 '12 17:01

Ivan Pericic


People also ask

Where is MSBuild exe located?

For a typical default installation on Windows 10, MSBuild.exe is under the installation folder in MSBuild\Current\Bin.

How do I add MSBuild exe to path?

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.

How do I enable MSBuild?

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.

Is MSBuild included in .NET framework?

It is installed as part of . NET (Full Framework, not just Client Profile), you don't need SDK.


2 Answers

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 :)

like image 159
Jon Skeet Avatar answered Sep 22 '22 22:09

Jon Skeet


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
like image 37
Colonel Panic Avatar answered Sep 21 '22 22:09

Colonel Panic