csc

csc

TLDR

Compile one or more C# files to a CIL executable

>_ csc [path/to/input_file_a.cs] [path/to/input_file_b.cs]
copy

Specify the output filename

>_ csc /out:[path/to/filename] [path/to/input_file.cs]
copy

Compile into a '.dll' library instead of an executable

>_ csc /target:library [path/to/input_file.cs]
copy

Reference another assembly

>_ csc /reference:[path/to/library.dll] [path/to/input_file.cs]
copy

Embed a resource

>_ csc /resource:[path/to/resource_file] [path/to/input_file.cs]
copy

Automatically generate XML documentation

>_ csc /doc:[path/to/output.xml] [path/to/input_file.cs]
copy

Specify an icon

>_ csc /win32icon:[path/to/icon.ico] [path/to/input_file.cs]
copy

Strongly-name the resulting assembly with a keyfile

>_ csc /keyfile:[path/to/keyfile] [path/to/input_file.cs]
copy

Copied to clipboard
free 100$ digital ocean credit