MSVS2013
C #
%vs120comntools%vsvars32.bat
csc/?
Microsoft (R) Visual C # Compiler version 12.0.21005.1
For C # 5
Copyright (C) Microsoft Corporation. All rights reserved.
Visual C # Compiler Options
-OUTPUT FILES-
/out:<file> Specify output file name (default:base name of file with main class or first file)
/target:exe Build a console executable (default) (short form:/t:exe)
/target:winexe Build a Windows executable (short form:/t:winexe)
/target:library Build a library (short form:/t:library)
/target:module Build A module that can is added to another assembly (short form:/t:module)
/target:appcontainerexe Build a appcontainer executable (short form:/t:appcontainerexe)
/target:winmdobj Build a Windows Runtime intermediate file that's consumed by winmdexp (short form:/T:WINM Dobj)
/doc:<file> XML documentation file to generate
/platform:<string> Limit which platforms this code can run On:x86, Itanium, x64, ARM, Anycpu32bitprefer Red, or anycpu. The default is anycpu.
-INPUT FILES-
/recurse:<wildcard> Include All files in the current directory and subdirectories according to the WILDCA RD Specifications
/reference:<alias>=<file> Reference metadata from The specified assembly file using the given alias (short form:/R)
/reference:<file list> ; Reference metadata from the specified assembly files (short form:/R)
/addmodule:<file Li st> Link The specified modules into this assembly
/link:< File list> Embed metadata from the Specified interop assembly files (Short form:/L)
-RESOURCES-
/win32res:<file> Specify a Win32 resource file (. res)
/win32icon:<file> Use this icon for the output
/win32manifest:<file> Specify a Win32 manifest file (. xml)
/nowin32manifest do not include the default WIN32 manifest
/resource:<resinfo> Embed The specified resource (short form:/res)
/linkresource:<resinfo> Link The specified resource to this assembly (short form:/linkres)
Where the resinfo format is <file>[,<string Name>[,public|private]]
-CODE GENERATION-
/debug[+|-] Emit Debugging Information
/debug:{ full|pdbonly} Specify debugging type (' Full ' is default, and Enables attaching a debugger to a running program)
/optimize[+|-] & nbsp; Enable Optimizations (short form:/O)
-ERRORS and WARNINGS-
/warnaserror[+|-] report all warnings as errors
/warnaserror[+|-]:<warn list > report specific warnings as errors
/warn:<n> Set Warning Level (0-4) (Short form:/ W)
/nowarn:<warn list> Disable Specific warning messages
-LANGUAGE-
/checked[+|-] Generate Overflow Checks
/unsafe[+|-] Allow ' unsafe ' Code
/define:<symbol list> define Conditional Compilation symbol (s) (short form:/d)
/langversion:<string> Specify language version mode:iso-1, ISO-2, 3, 4, 5, or Default
-SECURITY-
/delaysign[+|-] delay-sign the assembly using only the public portion of the strong name Key
/keyfile:<file> Specify a strong name key file
/keycontainer:<string> Specify a strong name key container
/highentropyva[+|-] Enable high-entropy ASLR
-Miscellaneous-
@<file> Read Response File for more options
/help Display This usage message (short form:/?)
/nologo suppress compiler copyright message
/noconfig do Not auto include CSC. RSP file
-Advanced-
/baseaddress:<address> Base address for the library to be built
/bugreport:<file> Create A ' Bug report ' file
/codepage:<n> Specify the codepage to use when opening source files
/utf8output Output compiler messages in UTF-8 encoding
/main:<type> Specify the type that is contains the entry point (Ignore all other possible entry point s) (short form:/m)
/fullpaths Compiler generates fully qualified paths
/filealign:<n> Specify the alignment used for output file sections
/pdb:<file> Specify debug information file name (default:output file name with. pdb extension)
/errorendlocation Output Line and column of the end location of each error
/preferreduilang specify the preferred output language name.
/nostdlib[+|-] do not reference standard library (mscorlib.dll)
/subsystemversion:<string> Specify subsystem version of this Assembly
/lib:<file list> Specify additional directories to search for references
/errorreport:<string> specify how to handle internal compiler errors:prompt, send, queue, or none. The default is queue.
/appconfig:<file> Specify an application configuration file containing assembly binding settings
/moduleassemblyname:<string> Name of the assembly which this module would be a part of
C # CSC Usage