translated file. CS to generate file.exe:
CSC file. CS
compile file. CS to generate file. DLL:
CSC/Target: library file. CS
compile file. CS and create my.exe:
CSC/out: my.exe file. CS
compile all C # files in the current directory by optimizing and defining the debug symbol. Output is file2.exe:
CSC/define: Debug/optimize/out: file2.exe *. CS
compile all C # files in the current directory to generate the debugging version of file2.dll. No logo or warning is displayed:
CSC/Target: Library/out: file2.dll/warn: 0/nologo/debug *. CS
compile all C # files in the current directory as something. XYZ (a DLL):
CSC/Target: Library/out: something. XYZ *. CS
compile file. CS to generate file. DLL: CSC/Target: library file. CS is the most widely used command. In fact, it can be written as CSC/T: library file. CS . Another method is
CSC/out: mycodebehind. dll/T: Library mycodebehind. CS . You can specify the output file name.
CSC/out: mycodebehind. dll/T: Library mycodebehind. CS mycodebehind2.cs , which is used to load two Cs files to one. DLL file, very useful.