Csc Installation On A Debian, Ubuntu, Alpine, Arch, Kali, Fedora, Raspbian And MacOS

Csc Installation On A Debian, Ubuntu, Alpine, Arch, Kali, Fedora, Raspbian And MacOS

csc

The Microsoft C# Compiler.

Maintainer: Davide Puricelli (evo)



Section: lisp

Install csc

  • Debian apt-get install chicken-bin Click to copy
  • Ubuntu apt-get install chicken-bin Click to copy
  • Alpine OS apk add chicken Click to copy
  • Arch Linux pacman -S mono Click to copy
  • Kali Linux apt-get install chicken-bin Click to copy
  • Fedora dnf install chicken Click to copy
  • Raspbian apt-get install chicken-bin Click to copy
  • macOS brew install mono Click to copy

The Microsoft C# Compiler.

How to use csc?

Below are few example commands for csc that you can use in the terminal.

Compile one or more C# files to a CIL executable:
csc path/to/input_file_a.cs path/to/input_file_b.csClick to copy
Specify the output filename:
csc /out:path/to/filename path/to/input_file.csClick to copy
Compile into a '.dll' library instead of an executable:
csc /target:library path/to/input_file.csClick to copy
Reference another assembly:
csc /reference:path/to/library.dll path/to/input_file.csClick to copy
Embed a resource:
csc /resource:path/to/target_file.cs,namespace.string.name path/to/input_file.csClick to copy
Automatically generate XML documentation:
csc /doc:path/to/output.xml path/to/input_file.csClick to copy
Specify an icon:
csc /win32icon:path/to/icon.ico path/to/input_file.csClick to copy
Strongly-name the resulting assembly with a keyfile:
csc /keyfile:path/to/keyfile path/to/input_file.csClick to copy
Install the latest version of csc in Debian, Ubuntu, Alpine, Arch, Kali, Fedora, Raspbian and macOS from terminal. To install the csc just copy the above command for your OS and run into terminal. After you run the command it will grab the latest version of csc from the respository and install it in your computer/server.