Cω - Reference

Cω Compiler Options Listed by Category

The following compiler options are sorted by category. For an alphabetical list, see Cω Compiler Options Listed Alphabetically.

Output Files

Option Purpose
/define Defines conditional compilation symbols.
/doc Processes documentation comments and generates an XML comments file.
/out Specifies the output file name.
/target Specifies the format of the output file using one of four options:
  • /target:exe (Build a console program)
  • /target:library (Build a library file)
  • /target:module (Build a module that can be added to another assembly)
  • /target:winexe (Build a Windows program)

Input Files

Option Purpose
/reference References metadata from the specified assembly.

Code Generation

Option Purpose
/debug Emits debugging information and specifies type of debugging to be used.
/optimize Controls whether or not optimizations are enabled.

Errors and Warning

Option Purpose
/warn Sets warning level.
/warnaserror Treats warnings as errors.

Language

Option Purpose
/checked Generates overflow checks.

Miscellaneous

Option Purpose
@ Specifies response file to be read for setting additional compiler options.
/help Displays command-line help.
/noconfig Specifies not to automatically include Csc.rsp file when compiling.

Advanced

Option Purpose
/baseaddress Specifies the base address for the library to be built.
/codepage Specifies the codepage to use when opening source files.
/lib Specifies additional directories to search in for references.
/main Specifies the type that contains the entry point (ignores all other possible entry points).
/nostdlib Specifies not to reference standard library (mscorlib.dll).