Ivan Pericic
Ivan Pericic

Reputation: 520

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?

Upvotes: 26

Views: 27883

Answers (2)

Colonel Panic
Colonel Panic

Reputation: 137682

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

Upvotes: 8

Jon Skeet
Jon Skeet

Reputation: 1502696

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

Upvotes: 35

Related Questions