-Output file-
/Out: <File> output file name (default value: file containing the main class or the base name of the first file)/Target: EXE console executable file (default) (Abbreviation: /t: exe)/Target: winexe to generate a Windows Executable File (Abbreviation:/T: winexe)/Target: Library (Abbreviation:/T: Library)/target: module generation can be added to other Program Module of the Set (Abbreviation:/T: module)/define: <symbol list> define the Conditional compilation symbol (Abbreviation:/d)/DOC: <File> the XML document file to be generated
-Input file-/recurse: <wildcard> according to the wildcard specification, including all files in the current directory and subdirectory/reference: <file list> reference metadata from the specified Assembly file (Abbreviation: /R)/addmodule: <file list> link the specified module to this Assembly-resource-/win32res: <File> specify the Win32 resource file (. res)/win32icon: <File> use this icon to output/resource: <resinfo> embed the specified resource (Abbreviation:/RES)/linkresource: <resinfo> link the specified resource to this Assembly (Abbreviation:/linkres )- Code Generate-/debug [+ |-] to issue debugging information/debug: {full | pdbonly} specifies the debugging type ("full" is the default type, you can attach a debug program to a running program.)/optimize [+ |-] Enable optimization (Abbreviation:/O)/Incremental [+ |-] to enable incremental compilation (Abbreviation: /incr)-errors and warnings-/warnaserror [+ |-] treats the warning as an error/warn: <n> set the warning level (0-4) (Abbreviation:/W) /nowarn: <warning list> disable specific warning messages-language-/checked [+ |-] to generate overflow check/unsafe [+ |-] Allow "insecure" code-Miscellaneous-@ <file> for more options, please read the response file/help to display this usage information (Abbreviation :/?) /Nologo cancel compiler copyright information/noconfig do not automatically include CSC. RSP file-advanced-/baseaddress: <address> base address of the database to be generated/bugreport: <File> Create an "Error Report" file/codePage: <n> specifies the code page/utf8output to be used to open the source file to output the compiler message/main in UTF-8 encoding format: <type> specify the type containing the entry point (ignore all other possible entry points) (Abbreviation:/M)/fullpaths compiler generates a fully qualified path/filealign: <n> specify the alignment for the output file section/nostdlib [+ |-] does not reference the standard library (mscorlib. DLL)/lib: <file list> specifies the additional directory to be referenced in the search.
Premise: a command line prompt tool is required, which cannot be used in common doscommands.
For example, compile it into a lib file: CSC/T: Library remoteobject. CS
For example, compile it into an EXE file: CSC/R: system. runtime. remoting. dll/R: remoteobject. dll remoteserver. CS