Created
January 22, 2018 16:06
-
-
Save introt/67e703be0001e9dd5173153308bc7426 to your computer and use it in GitHub Desktop.
Mono gtk helloworld
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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(); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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