How do I get msbuild.exe? Can it build a .vcproj when VS2008 is not installed?

Cheeso picture Cheeso · Sep 12, 2009 · Viewed 15.4k times · Source

I know msbuild will be installed, if I install Visual Studio 2005 or 2008.

I know msbuild is also installed if I install the .NET Framework SDK.

As of .NET 3.0, I think there is no longer a separate ".NET Framework SDK". Instead if I want the free SDK stuff - all the .NET command line tools, all the base class libraries - then I can download the Windows SDK, and install the .NET portion of it. I will also get the msbuild tool if I do this. (Right?)

Now to my questions:

  1. Will I get msbuild if I install one or more parts of the Windows SDK that does not include the .NET SDK?

  2. Will I get nmake, too?

  3. If I don't have Visual Studio installed, will MSBuild be able to build a .sln file that references a .vcproj file? I know msbuild can build .vbproj and .csproj, but can it build .vcproj? I also think that for VS2010, the .vcproj file changes to the ".csproj format". But this is a .vcproj from vs2008.


I am distributing some source code and I want to describe what is required to build the source. I know the source can be built with VS 2008. I want to also describe how it can be built without VS2008.

Thanks.

Answer

Jon Skeet picture Jon Skeet · Sep 12, 2009
  1. msbuild is installed with the framework itself, not just the SDK. So you don't need to download any SDKs.
  2. No, you won't get nmake at the same time.
  3. Yes, you'll be able to build solution and project files without Visual Studio being installed.

Admittedly I've never tried any of these things (as I always have VS installed) but my understanding is that the above is correct.