From ef0ff7fbf55c0f03fdee24cc81bef7b708185da6 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Wed, 7 Nov 2018 06:14:54 +0000 Subject: [PATCH] csc: add page (#2557) --- pages/common/csc.md | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 pages/common/csc.md diff --git a/pages/common/csc.md b/pages/common/csc.md new file mode 100644 index 000000000..f6ce5cdaa --- /dev/null +++ b/pages/common/csc.md @@ -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}}`