Advertisement
AlezM

Untitled

Dec 24th, 2018
600
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.46 KB | None | 0 0
  1. csc -help
  2. Microsoft (R) Visual C# Compiler version 2.9.1.65535 (9d34608e)
  3. Copyright (C) Microsoft Corporation. All rights reserved.
  4.  
  5.  
  6. Visual C# Compiler Options
  7.  
  8. - OUTPUT FILES -
  9. -out:<file> Specify output file name (default: base name of
  10. file with main class or first file)
  11. -target:exe Build a console executable (default) (Short
  12. form: -t:exe)
  13. -target:winexe Build a Windows executable (Short form:
  14. -t:winexe)
  15. -target:library Build a library (Short form: -t:library)
  16. -target:module Build a module that can be added to another
  17. assembly (Short form: -t:module)
  18. -target:appcontainerexe Build an Appcontainer executable (Short form:
  19. -t:appcontainerexe)
  20. -target:winmdobj Build a Windows Runtime intermediate file that
  21. is consumed by WinMDExp (Short form: -t:winmdobj)
  22. -doc:<file> XML Documentation file to generate
  23. -refout:<file> Reference assembly output to generate
  24. -platform:<string> Limit which platforms this code can run on: x86,
  25. Itanium, x64, arm, arm64, anycpu32bitpreferred, or
  26. anycpu. The default is anycpu.
  27.  
  28. - INPUT FILES -
  29. -recurse:<wildcard> Include all files in the current directory and
  30. subdirectories according to the wildcard
  31. specifications
  32. -reference:<alias>=<file> Reference metadata from the specified assembly
  33. file using the given alias (Short form: -r)
  34. -reference:<file list> Reference metadata from the specified assembly
  35. files (Short form: -r)
  36. -addmodule:<file list> Link the specified modules into this assembly
  37. -link:<file list> Embed metadata from the specified interop
  38. assembly files (Short form: -l)
  39. -analyzer:<file list> Run the analyzers from this assembly
  40. (Short form: -a)
  41. -additionalfile:<file list> Additional files that don't directly affect code
  42. generation but may be used by analyzers for producing
  43. errors or warnings.
  44. -embed Embed all source files in the PDB.
  45. -embed:<file list> Embed specific files in the PDB
  46.  
  47. - RESOURCES -
  48. -win32res:<file> Specify a Win32 resource file (.res)
  49. -win32icon:<file> Use this icon for the output
  50. -win32manifest:<file> Specify a Win32 manifest file (.xml)
  51. -nowin32manifest Do not include the default Win32 manifest
  52. -resource:<resinfo> Embed the specified resource (Short form: -res)
  53. -linkresource:<resinfo> Link the specified resource to this assembly
  54. (Short form: -linkres) Where the resinfo format
  55. is <file>[,<string name>[,public|private]]
  56.  
  57. - CODE GENERATION -
  58. -debug[+|-] Emit debugging information
  59. -debug:{full|pdbonly|portable|embedded}
  60. Specify debugging type ('full' is default,
  61. 'portable' is a cross-platform format,
  62. 'embedded' is a cross-platform format embedded into
  63. the target .dll or .exe)
  64. -optimize[+|-] Enable optimizations (Short form: -o)
  65. -deterministic Produce a deterministic assembly
  66. (including module version GUID and timestamp)
  67. -refonly Produce a reference assembly in place of the main output
  68. -instrument:TestCoverage Produce an assembly instrumented to collect
  69. coverage information
  70. -sourcelink:<file> Source link info to embed into PDB.
  71.  
  72. - ERRORS AND WARNINGS -
  73. -warnaserror[+|-] Report all warnings as errors
  74. -warnaserror[+|-]:<warn list> Report specific warnings as errors
  75. -warn:<n> Set warning level (0-4) (Short form: -w)
  76. -nowarn:<warn list> Disable specific warning messages
  77. -ruleset:<file> Specify a ruleset file that disables specific
  78. diagnostics.
  79. -errorlog:<file> Specify a file to log all compiler and analyzer
  80. diagnostics.
  81. -reportanalyzer Report additional analyzer information, such as
  82. execution time.
  83.  
  84. - LANGUAGE -
  85. -checked[+|-] Generate overflow checks
  86. -unsafe[+|-] Allow 'unsafe' code
  87. -define:<symbol list> Define conditional compilation symbol(s) (Short
  88. form: -d)
  89. -langversion:? Display the allowed values for language version
  90. -langversion:<string> Specify language version such as
  91. `default` (latest major version), or
  92. `latest` (latest version, including minor versions),
  93. or specific versions like `6` or `7.1`
  94.  
  95. - SECURITY -
  96. -delaysign[+|-] Delay-sign the assembly using only the public
  97. portion of the strong name key
  98. -publicsign[+|-] Public-sign the assembly using only the public
  99. portion of the strong name key
  100. -keyfile:<file> Specify a strong name key file
  101. -keycontainer:<string> Specify a strong name key container
  102. -highentropyva[+|-] Enable high-entropy ASLR
  103.  
  104. - MISCELLANEOUS -
  105. @<file> Read response file for more options
  106. -help Display this usage message (Short form: -?)
  107. -nologo Suppress compiler copyright message
  108. -noconfig Do not auto include CSC.RSP file
  109. -parallel[+|-] Concurrent build.
  110. -version Display the compiler version number and exit.
  111.  
  112. - ADVANCED -
  113. -baseaddress:<address> Base address for the library to be built
  114. -checksumalgorithm:<alg> Specify algorithm for calculating source file
  115. checksum stored in PDB. Supported values are:
  116. SHA1 (default) or SHA256.
  117. -codepage:<n> Specify the codepage to use when opening source
  118. files
  119. -utf8output Output compiler messages in UTF-8 encoding
  120. -main:<type> Specify the type that contains the entry point
  121. (ignore all other possible entry points) (Short
  122. form: -m)
  123. -fullpaths Compiler generates fully qualified paths
  124. -filealign:<n> Specify the alignment used for output file
  125. sections
  126. -pathmap:<K1>=<V1>,<K2>=<V2>,...
  127. Specify a mapping for source path names output by
  128. the compiler.
  129. -pdb:<file> Specify debug information file name (default:
  130. output file name with .pdb extension)
  131. -errorendlocation Output line and column of the end location of
  132. each error
  133. -preferreduilang Specify the preferred output language name.
  134. -nostdlib[+|-] Do not reference standard library (mscorlib.dll)
  135. -subsystemversion:<string> Specify subsystem version of this assembly
  136. -lib:<file list> Specify additional directories to search in for
  137. references
  138. -errorreport:<string> Specify how to handle internal compiler errors:
  139. prompt, send, queue, or none. The default is
  140. queue.
  141. -appconfig:<file> Specify an application configuration file
  142. containing assembly binding settings
  143. -moduleassemblyname:<string> Name of the assembly which this module will be
  144. a part of
  145. -modulename:<string> Specify the name of the source module
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement