Running .NET 4 application with Mono

后端 未结 4 1564
不知归路
不知归路 2021-02-05 10:48

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

相关标签:
4条回答
  • 2021-02-05 11:02

    Install Monodevelop and just right click on the example.csprj that is a C#.NET project in linux and click on Monodevelop.

    0 讨论(0)
  • 2021-02-05 11:05

    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.

    0 讨论(0)
  • 2021-02-05 11:17

    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.

    0 讨论(0)
  • 2021-02-05 11:18

    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.

    0 讨论(0)
提交回复
热议问题