LoginSignup
0
0

More than 3 years have passed since last update.

備忘録 Ubuntu Linuxでcommand lineでC#を実行する。

Last updated at Posted at 2020-10-17

以下のサイトを参考にさせていただきました。

$sudo apt update
$sudo apt install mono-complete

ちょっとインストール時間かかります。

$vi hello.cs
hello.cs
using System;
class HelloWorld {
  static void Main() {
    Console.WriteLine("Hello World!");
  }
}
$mcs -out:hello.exe hello.cs
$mono hello.exe

出力

Hello World!
0
0
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0