4
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Mono で C# を使う

Last updated at Posted at 2018-03-08

サンプルとして次のプログラムを使います。

Program.cs
using System;

namespace example
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("こんにちは");
            Console.WriteLine("Hello World!");
            Console.WriteLine("2022年8月5日");
        }
    }
}

コンパイル

mcs Program.cs

実行

$ ./Program.exe 
こんにちは
Hello World!
2022年8月5日

次のバージョンで確認しました。

$ mcs --version
Mono C# compiler version 6.12.0.0
4
4
0

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
4
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?