mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-22 00:42:08 +02:00
csc: add page (#2557)
This commit is contained in:
parent
737310fdc8
commit
ef0ff7fbf5
1 changed files with 35 additions and 0 deletions
35
pages/common/csc.md
Normal file
35
pages/common/csc.md
Normal file
|
@ -0,0 +1,35 @@
|
|||
# csc
|
||||
|
||||
> The Microsoft C# Compiler.
|
||||
|
||||
- Compile one or more C# files to a CIL executable:
|
||||
|
||||
`csc {{path/to/input_file_a.cs}} {{path/to/input_file_b.cs}}`
|
||||
|
||||
- Specify the output filename:
|
||||
|
||||
`csc /out:{{path/to/filename}} {{path/to/input_file.cs}}`
|
||||
|
||||
- Compile into a '.dll' library instead of an executable:
|
||||
|
||||
`csc /target:library {{path/to/input_file.cs}}`
|
||||
|
||||
- Reference another assembly:
|
||||
|
||||
`csc /reference:{{path/to/library.dll}} {{path/to/input_file.cs}}`
|
||||
|
||||
- Embed a resource:
|
||||
|
||||
`csc /resource:{{path/to/target_file.cs}},{{namespace.string.name}} {{path/to/input_file.cs}}`
|
||||
|
||||
- Automatically generate XML documentation:
|
||||
|
||||
`csc /doc:{{path/to/output.xml}} {{path/to/input_file.cs}}`
|
||||
|
||||
- Specify an icon:
|
||||
|
||||
`csc /win32icon:{{path/to/icon.ico}} {{path/to/input_file.cs}}`
|
||||
|
||||
- Strongly-name the resulting assembly with a keyfile:
|
||||
|
||||
`csc /keyfile:{{path/to/keyfile}} {{path/to/input_file.cs}}`
|
Loading…
Add table
Reference in a new issue