public override void FinishedLaunching(MonoMac.Foundation.NSObject notification) { // Handle a Xamarin.Mac Upgrade AppDomain.CurrentDomain.AssemblyResolve += (object sender, ResolveEventArgs a) => { if (a.Name.StartsWith("MonoMac")) { return(typeof(MonoMac.AppKit.AppKitFramework).Assembly); } return(null); }; game = new Stage(); game.Run(); }
/// <summary> /// The main entry point for the application. /// </summary> static void Main(string[] args) { using (Stage stage = new Stage()) { stage.Run(); } }
static void Main() { using (var game = new Stage()) game.Run(); }