-
Created empty project in MonoDevelop
-
Added “gtk-sharp3” NuGet Package
-
Added System and Mono.Posix References
-
Created Main Method and Subclass of Window:
public class Program { public static void Main(string[] args) { Application.Init (); MainWindow mv = new MainWindow (); mv.Show (); Application.Run (); } } public class MainWindow : Gtk.Window { public MainWindow () : base("Hello World") { } }
It crashes on the base-constructor of the MainWindow class with a MissingMethodException, Message “Method ‘Array.Empty’ not found”.
But Array is part of System, which is referenced. There’s even a using-Directive of it in the file. I don’t understand what’s wrong here. Any ideas?
I’m aware that MonoDevelop has a working Project Template for GTK Sharp, but this is targeted on Version 2.x, I want to play around with 3.x