Two options to setup Environment Variable in .Net :
* The first is to run the batch file %Microsoft Visual Studio 2005%\Common7\Tools\vcvars32.bat from the command prompt before running csc, where %Microsoft Visual Studio 2005 is the folder to which Visual Studio 2005 has been installed.
* The second way is to use the Visual Studio 2005 command prompt instead of the usual command prompt windows.
We will find the Visual Studio .Net command prompt in the Start menu, under
Programs -> Microsoft Visual Studio 2005 -> Microsoft Visual Studio Tools.
It is simply a command prompt window that automatically runs vcvars32.bat when it opens.