Option | Description |
|---|
/alignment=integer | Sets FileAlignment to the value specified by integer in the NT Optional header. If the .alignment IL directive is specified in the file, this option overrides it. |
/base=integer | Sets ImageBase to the value specified by integer in the NT Optional header. If the .imagebase IL directive is specified in the file, this option overrides it. |
/clock | Measures and reports the following compilation times in milliseconds for the specified .il source file: Total Run: The total time spent performing all the specific operations that follow. Startup: Loading and opening the file. Emitting MD: Emitting metadata. Ref to Def Resolution: Resolving references to definitions in the file. CEE File Generation: Generating the file image in memory. PE File Writing: Writing the image to a PE file. |
/debug[=IMPL|OPT] | Includes debug information (local variable and argument names, and line numbers). Creates a PDB file. /debug with no additional value disables JIT optimization and uses sequence points from the PDB file. IMPL disables JIT optimization and uses implicit sequence points. OPT enables JIT optimization and uses implicit sequence points. IMPL and OPT are new in the .NET Framework version 2.0. |
/dll | Produces a .dll file as output. |
/enc=file | Creates Edit-and-Continue deltas from the specified source file. This argument is for academic use only and is not supported for commercial use. New in the .NET Framework version 2.0. |
/exe | Produces an executable file as output. This is the default. |
/flags=integer | Sets ImageFlags to the value specified by integer in the common language runtime header. If the .corflags IL directive is specified in the file, this option overrides it. See CorHdr.h , COMIMAGE_FLAGS for a list of valid values for integer. |
/fold | Folds identical method bodies into one. New in the .NET Framework version 2.0. |
/include=includePath | Sets a path to search for files included with #include. New in the .NET Framework version 2.0. |
/itanium | Specifies Intel Itanium as the target processor. If no image bitness is specified, the default is /pe64. New in the .NET Framework version 2.0. |
/key:keyFile | Compiles filename with a strong signature using the private key contained in keyFile. |
/key:@keySource | Compiles filename with a strong signature using the private key produced at keySource. |
/listing | Produces a listing file on the standard output. If you omit this option, no listing file is produced. This parameter is not supported in .NET Framework version 2.0 or later. |
/mdv=versionString | Sets the metadata version string. New in the .NET Framework version 2.0. |
/msv=major.minor | Sets the metadata stream version, where major and minor are integers. New in the .NET Framework version 2.0. |
/noautoinherit | Disables default inheritance from Object when no base class is specified. New in the .NET Framework version 2.0. |
/nocorstub | Suppresses generation of the CORExeMain stub. New in the .NET Framework version 2.0. |
/nologo | Suppresses the Microsoft startup banner display. |
/output:file.ext | Specifies the output file name and extension. By default, the output file name is the same as the name of the first source file. The default extension is .exe. If you specify the /dll option, the default extension is .dll. Note:Specifying /output:myfile.dll does not set the /dll option. If you do not specify /dll, the result will be an executable file named myfile.dll. |
/optimize | Optimizes long instructions to short. For example, br to br.s. New in the .NET Framework version 2.0. |
/pe64 | Creates a 64-bit image (PE32+). If no target processor is specified, the default is /itanium. New in the .NET Framework version 2.0. |
/pdb | Creates a PDB file without enabling debug information tracking. New in the .NET Framework version 2.0. |
/quiet | Specifies quiet mode; does not report assembly progress. |
/resource:file.res | Includes the specified resource file in *.res format in the resulting .exe or .dll file. Only one .res file can be specified with the /resource option. |
/stack=stackSize | Sets the SizeOfStackReserve value in the NT Optional header to stackSize. New in the .NET Framework version 2.0. |
/stripreloc | Specifies that no base relocations are needed. New in the .NET Framework version 2.0. |
/subsystem=integer | Sets subsystem to the value specified by integer in the NT Optional header. If the .subsystem IL directive is specified in the file, this command overrides it. See winnt.h, IMAGE_SUBSYSTEM for a list of valid values for integer. |
/x64 | Specifies a 64-bit AMD processor as the target processor. If no image bitness is specified, the default is /pe64. New in the .NET Framework version 2.0. |
/? | Displays command syntax and options for the tool. |