csc
The Microsoft C# Compiler. More information: https://learn.microsoft.com/dotnet/csharp/language-reference/compiler-options/command-line-building-with-csc-exe.
- Compile one or more C# files to a CIL executable:
csc
- Specify the output filename:
csc /out:
- Compile into a
.dlllibrary instead of an executable:
csc /target:library
- Reference another assembly:
csc /reference:
- Embed a resource:
csc /resource:
- Automatically generate XML documentation:
csc /doc:
- Specify an icon:
csc /win32icon:
- Strongly-name the resulting assembly with a keyfile:
csc /keyfile:
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
