I\'m trying to run a .NET exe on a Ubuntu machine (I installed the package mono-complete
), so far with no luck. The application is compiled with Visual C# Express 2
Install Monodevelop and just right click on the example.csprj that is a C#.NET project in linux and click on Monodevelop.
Current mono-complete package (even on Ubuntu Natty) uses mono 2.6.7 which doesn't support .NET 4.0 API. You'll have to build newest version of mono, which is the best way to get a chance of using 4.0 API. "Complete" support of .NET 4.0 is however planned in mono 3.0.
I suspect the exception is because the method System.Windows.Forms.Application.SetCompatibleTextRenderingDefault hasn't been implemented. Have you ran the tool through the Mono Migration Analyzer (MoMA), should help in knowing whether your application is compatible with mono. From that point you can possibly workaround the problem, maybe even incorporating the missing method in your code.
Sounds like you're experiencing this bug:
My Doc's Got No Nodes: .net 4 Client Profile on Mono 2.8
That is assuming you installed > Mono 2.8 (which was the first release to support .NET 4.0). If not, you should install a more recent Mono package.
The other thing to keep in mind is that Mono doesn't support the entirety of WinForms. Unless you developed your application with Mono in mind, there's a good chance you'll find that something you used isn't supported.