You need to have a look at the following 2 sites:
1 - Command-line Building With csc.exe
http://msdn.microsoft.com/en-us/library/78f4aasd.aspx
and
2 - Determining Which Version of the .NET Framework Is Installed
http://msdn.microsoft.com/en-us/library/y549e41e.aspx
You will need to identify which version of the .NET Framework compiler you will use, from the second link you can see:
"You can install and run multiple versions of the .NET Framework on a computer. You can install the versions in any order. To see which versions are installed, view the %WINDIR%\Microsoft.NET\Framework directory. (You should also view the Framework64 directory on a 64-bit computer, which can have 32 or 64-bit versions installed.) Each version of the .NET Framework has a directory, and the first two digits of the directory name identify the .NET Framework version; for example: v1.1.4322 for the .NET Framework 1.1, v2.0.50727 for the .NET Framework 2.0, v3.5 for the .NET Framework 3.5, and so on."