How Do I Run a Cs File in Linux?
Contents

How do I run a CS file in Terminal?

Using the command prompt:

  1. Start –> Command Prompt.
  2. Change the directory to Visual Studio folder, using the command: cd C:Program Files (x86)Microsoft Visual Studio2017 <Version>
  3. Use the command: csc /. cs.

How do I run a .CS file in Ubuntu?

# At Ubuntu terminal, download and install following packages via terminal: sudo apt-add-repository ppa:directhex/ppa. sudo apt-get update. sudo apt-get install monodevelop.
…
cs file e.g.,

  1. using System;
  2. namespace MonoTest.
  3. {
  4. class Program.
  5. {
  6. static void Main(string[] args)
  7. {
  8. Console. WriteLine(“Hai to Mono”);
James H. Sterling

James H. Sterling

Environmental Science & Climate Journalist

James Sterling reports on renewable energy developments, climate policy, ecological conservation, and green tech innovations around the globe.

Share this article
Twitter Facebook Pinterest