On Thu, Mar 21, 2013 at 8:20 AM, [email protected] <[email protected]> wrote: > I'm not sure the intention is to build once run anywhere like Java is. > Someone will correct me if I'm wrong but I think the idea is you don't have
I'd say you are wrong :) We have a fairly complicated application (programming IDE with multiple languages [1]) and a single .exe with single .dlls runs on all platforms. We have a couple of places that do something different based on the platform, but that is only for interacting with external programs. -Doug [1] - http://calicoproject.org/ > to heavily modify your source code to build it in other environments. Also > there is a way to build with the Mono compiler that includes all the > dependencies, that's how you can use Mono to build for IPhone/IPad. Do you > know what that flag is? Have you build it on you Ubuntu machine? Did you get > the same results? > > I don't try to use the same binary just the same code to build from. > > > > > > ________________________________ > From: "prahladyeri" <[email protected]> > Sent: Thursday, March 21, 2013 8:16 AM > To: [email protected] > Subject: [Gtk-sharp-list] Need help with GTK# - Newbie here. > > > In my quest for platform-independence, I built a simple hello-world app on > my > windows machine using monodevelop 4.0 and gtk# 2.12. When I try to run it on > my Ubuntu 12.04 LTS, I get the below runtime error: > > Unhandled Exception: System.TypeLoadException: Could not load type > 'MainWindow' from assembly 'hellogtk, Version=1.0.4824.3971, > Culture=neutral, PublicKeyToken=null'. [ERROR] FATAL UNHANDLED EXCEPTION: > System.TypeLoadException: Could not load type 'MainWindow' from assembly > 'hellogtk, Version=1.0.4824.3971, Culture=neutral, PublicKeyToken=null'. > > > My mono runtime version is 2.10. Could you suggest what could have gone > wrong ? > > > > > -- > View this message in context: > http://mono.1490590.n4.nabble.com/Need-help-with-GTK-Newbie-here-tp4659049.html > > Sent from the Mono - Gtk# mailing list archive at Nabble.com. > _______________________________________________ > Gtk-sharp-list maillist - [email protected] > http://lists.ximian.com/mailman/listinfo/gtk-sharp-list > > _______________________________________________ > Gtk-sharp-list maillist - [email protected] > http://lists.ximian.com/mailman/listinfo/gtk-sharp-list > _______________________________________________ Gtk-sharp-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
