Skip to content

Instantly share code, notes, and snippets.

@introt
Created January 22, 2018 16:06
Show Gist options
  • Save introt/67e703be0001e9dd5173153308bc7426 to your computer and use it in GitHub Desktop.
Save introt/67e703be0001e9dd5173153308bc7426 to your computer and use it in GitHub Desktop.
Mono gtk helloworld
// http://www.mono-project.com/docs/getting-started/mono-basics/
using Gtk;
using System;
class Hello
{
static void Main ()
{
Application.Init ();
Window window = new Window ("Hello Mono World");
window.Show();
Application.Run();
}
}
# https://stackoverflow.com/a/20911487
.PHONY: hello.cs
all: run
hello.exe: hello.cs
@mcs hello.cs -pkg:gtk-sharp-3.0
clean:
@rm -f hello.exe
run: hello.exe
@ mono hello.exe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment