The following compiler options are sorted Alphabetically. For a list by category see : X# Compiler Options Listed By Category
The options in RED are not supported yet.
Option |
Purpose |
---|---|
Specifies a response file. |
|
Lists compiler options to stdout. |
|
Names additional files that don't directly affect code generation but may be used by analyzers for producing errors or warnings. |
|
Specifies one or more modules to be part of this assembly. |
|
Controls if the DOT (".") operator should be allowed to access instance members |
|
Allow assignments with a single Equals operator (=) |
|
Run the analyzers from this assembly (Short form: /a) |
|
Specify an application configuration file containing assembly binding settings |
|
Dump the abstract syntax tree for each source file (.ast extension) |
|
Specifies that arrays are zero-based rather than one-based |
|
Specifies the preferred base address at which to load a DLL. |
|
Specifies whether integer arithmetic that overflows the bounds of the data type will cause an exception at run time. |
|
Specify the algorithm for calculating the source file checksum stored in PDB. Supported values are: SHA1 (default) or SHA256. |
|
Specifies the code page to use for all source code files in the compilation. |
|
Specifies that the compiler should use case-sensitive type names |
|
Instruct the compiler to emit debugging information. |
|
Defines preprocessor symbols. |
|
Specifies the dialect to use when compiling. The following values are supported: Core, VO, Vulcan, dBase, FoxPro, Xbase++ and Harbour. Work on the VO and Vulcan dialects has started. |
|
Instructs the compiler to add the public key but to leave the assembly unsigned. |
|
Specifies an XML file where processed documentation comments are to be written. |
|
Enforce the use of the OVERRIDE keyword to override methods from parent classes in subclasses |
|
Enforce the use of SELF: to access fields, properties and methods inside a class |
|
Output line and column of the end location of each error |
|
Sets error reporting behavior. |
|
Specifies the size of sections in the output file. |
|
Obsolete |
|
Compatible FoxPro Array support |
|
Specifies that exceptions will be raised on invalid floating point operations (duplicate of -ovf) |
|
Specifies the absolute path to the file in compiler output. |
|
Lists compiler options to stdout. |
|
Specifies that the executable file supports address space layout randomization (ASLR). |
|
Specifies a directory to add to the #include file search path |
|
Initialize all local variables |
|
Use implicit namespace lookup mechanism |
|
Specifies the name of the cryptographic key container. |
|
Specifies the filename containing the cryptographic key. |
|
Specifies that the compiler should generate late bound calls when necessary |
|
Specify language version mode: core, VO, Vulcan, Harbour, FoxPro, dBase |
|
Tells the compiler to only lex the source code. |
|
Specifies the location of assemblies referenced by means of /reference. |
|
Makes COM type information in specified assemblies available to the project. |
|
Creates a link to a managed resource. |
|
Specifies the location of the Main method. |
|
Enable support for memory variables |
|
Disable certain legacy compiler options |
|
Specify the name of the source module |
|
Specifies whether to allow named arguments in the parser or not. |
|
Suppresses preprocessor definitions in XSharpDefs.xh |
|
Specify the default namespace for the output assembly |
|
Instructs the compiler not to compile with xsc.rsp. |
|
Suppress generation of empty $Init1() and $Exit() functions |
|
Suppresses compiler banner information. |
|
-norun |
Obsolete compiler option in X#, inherited from Vulcan. To achieve this simply remove the references to the runtime DLLs and compile in the Core dialect |
Instructs the compiler not to import the standard library (mscorlib.dll). |
|
Suppresses the compiler's generation of specified warnings. |
|
Enables/disables optimizations. |
|
Specifies that exceptions will be raised on overflows (duplicate of -fovf) |
|
Specifies the output file. |
|
Specifies whether to use concurrent build (+). |
|
Tells the compiler to only lex and parse the source code. |
|
Specify a mapping for source path names output by the compiler. |
|
Specifies the file name and location of the .pdb file. |
|
Specify the output platform. |
|
Writes preprocessor output to file |
|
Specify a language for compiler output. |
|
Searches subdirectories for source files to compile. |
|
Imports metadata from a file that contains an assembly. |
|
Embeds a .NET Framework resource into the output file. |
|
Specify a ruleset file that disables specific diagnostics. |
|
Syntax check only |
|
Use the shared compiler |
|
Show the defines that are added from the header files and their usage |
|
Lists #include files in compiler output |
|
Signs assembly with strong name key pair |
|
Specifies the minimum version of the subsystem that the executable file can use. |
|
Specifies the format of the output file using one of five options: /target:appcontainerexe, /target:exe, /target:library, /target:module, /target:winexe, or /target:winmdobj. |
|
Specify filename that will be updated with list of files read and written by the compiler |
|
Enables the support for undeclared memory variables |
|
Enables compilation of code that uses the unsafe keyword. |
|
Prefer native resource (if any) over resources generated from managed assembly properties |
|
Displays compiler output using UTF-8 encoding. |
|
Use Init and Axit methods in stead of Constructors and Destructors |
|
Initialize STRING variables, fields and DIM arrays to empty strings |
|
Treats All Methods As VIRTUAL |
|
Allows implicit numeric conversions |
|
Implicit CLIPPER Calling Convention for Zero-Argument Functions |
|
Resolves typed function pointers to PTR |
|
Allows compatible implicit casts and conversions |
|
Enables compatible preprocessor behavior |
|
Allows missing RETURN statements |
|
Enables compatible IIF behavior |
|
Enables Visual Objects compatible arithmetic conversions |
|
Enables Clipper compatible integer divisions |
|
Enables Visual Objects compatible string comparisons |
|
Insert floating point literals as FLOAT |
|
Allow untyped Locals and return types |
|
Automatically generate Clipper calling convention constructors for classes without constructor |
|
This option is not supported. use -nowarn in stead |
|
Sets the warning level. |
|
Promotes warnings to errors. |
|
Specifies an .ico file to insert into the output file. |
|
Specify a user-defined Win32 application manifest file to be embedded into a executable file. |
|
Specifies a Win32 resource to insert into the output file. |
|
Treats all warnings as errors (alias for -warnaserror) |
|
Classes without parent class inherit from the Abstract class |