Question: I'm trying to setup .NET (C#) build from the command line. What is the list of environment variables that I need to set up in the MSDOS prompt before I can run `MSBuild.exe` from the command line?

The path to `MSBuild` executable would be the most obvious example. I cannot rely on setting variables from `MyComputer -> Properties -> Advanced -> Enviroment Variables` so I really need a full list if such list exists.

P.S. The build needs to be automated (command line), and I'm not using Visual Studio but building with .NET Framework (v3.5) only.

Answer: 
> 
> What is the list of environment variables that I need to set up in the MSDOS prompt before I can run MSBuild.exe from the command line?
> 
> 
> 

MSBuild has a set of [reserved properties](http://msdn.microsoft.com/en-us/library/ms164309.aspx) that are used, but you don't need to do anything to set these up. Any variables that MSBuild needs will be setup within MSBuild. The only environmental variables you need to worry about are ones that **you** yourself require.

The physical path to MSBuild for your DOS script is:

```
C:\WINDOWS\Microsoft.NET\Framework\v3.5\MSBuild

```
Visual Studio comes with a program that will set all of the required command line variables for you in a command shell. It is recommended that you run that, this will give you `cmd` in a window that you can compile any of the different languages.