The following compiler options are sorted by category.
Compiler Options
Option | Purpose |
---|---|
Specifies output file name. |
|
Specifies the format of the output file using one of three options:/target:exe/target:library/target:winexe. |
Option | Purpose |
---|---|
Automatically references assemblies if they have the same name as an imported namespace or as a type annotation when declaring a variable. |
|
Specifies the location of assemblies referenced via /reference. |
|
Does not import standard library (mscorlib.dll). |
|
Imports metadata from a file that contains an assembly. |
Option | Purpose |
---|---|
Emits debugging information. |
|
Specifies code page for compiler messages. |
|
Helps to make sure that all overrides are explicit. |
|
Sets warning level. |
|
Promotes warnings to errors. |
Option | Purpose |
---|---|
Defines preprocessor symbols. |
Option | Purpose |
---|---|
Creates a link to a managed resource. |
|
Embeds a managed resource in an assembly. |
|
Inserts a Win32 resource into the output file. |
Option | Purpose |
---|---|
Specifies a response file. |
|
Specifies the code page to use for all source code files in the compilation. |
|
Produces an output file optimized for speed but that does not support certain language features from previous releases. |
|
Lists compiler options to stdout. |
|
Suppresses compiler banner information. |
|
Specifies the platform type. |
|
Specifies whether the print statement shall be defined. |
|
Displays compiler output using UTF-8 encoding. |