To enable

in Command Prompt, you simply have to add the path to the .NET 4 Framework install on your machine to the

environment variable.

You can access the environment variables by:

  1. Right clicking on Computer
  2. Click Properties
  3. Then click Advanced system settings on the left navigation bar
  4. On the next dialog box click Environment variables
  5. Scroll down to PATH
  6. Edit it to include your path to the framework (don’t forget a “;” after the last entry in here).

For reference, my path was


As of MSBuild 12 (2013)/VS 2013/.NET 4.5.1+ and onward MSBuild is now installed as a part of Visual Studio.

For reference, with VS2015 installed my machine my path is

How do I run msbuild from the command line using Windows SDK
4.7 (93.33%) 3 votes