Commandline for compile C# code: csc.exe /out:Program.exe /t:exe /r:MSCorLib.dll Program.cs
When you use the /reference compiler switch to reference an assembly, you can
specify a complete path to a particular file. However, if you do not specify a path, the compiler
will search for the file in the following places (in the order listed):
1. Working directory.
2. The directory that contains the CSC.exe file itself. MSCorLib.dll is always obtained from
this directory. The path looks something like this: %SystemRoot%\Microsoft.NET\
Framework\v2.0.50727.
3. Any directories specified using the /lib compiler switch.
4. Any directories specified using the LIB environment variable.
No comments:
Post a Comment