LoginSignup
29
38

More than 5 years have passed since last update.

Mac OS Xでmonoを使ってC#のプログラムをコンパイルする

Last updated at Posted at 2015-06-23

モチベーション

「monoを使うと、MacでもC#を使えるらしい」というふんわりした理解です。
どれほどのものなのか試して知りたい。

要するに

hello worldを動かしました。

手順

インストール mono

brew install mono

ソースコード

hello_world.cs
using System;

class HelloWorld {
    public static void Main( )
    {
        Console.WriteLine("hello world");
    }
}

コンパイル

mcs hello_world.cs

実行

mono hello_world.exe

実行結果

hello world

感想

atom が C# をサポートしていて驚きました。

参考リンク

29
38
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
29
38