c# - Running .NET 4 application with Mono -


package

I am trying to run a net exe on a Ubuntu machine (I installed mono full ), so far no luck with it. . The application has been compiled from Visual C # Express 2010 under Net 4 (Customer Profile)

I try to implement the program with the following command:

  Mono application.exe   

However, I get the following error:

WARNING: Runtime version supported by this application is unavailable. Default order using: v1.1.4322

** (application.exe: 5586): Warning **: The missing method in the assembly System.Windows.Forms.Application :: SetCompatibleTextRenderingDefault (bool) / usr / Lib / mono / gac / system.Windows.Forms / 1.0.5000.0__b77a5c561934e089 / System.Windows.Forms.dll, referenced in assembly /media/disk/application.exe

Exception without verb: System .MissingMethodException: Method Not Found :. 'System.Windows.Forms.Application.SetCompatibleTextRenderingDefault'

It seems to be used by Net 4, not 1, but I do not know how to install it. I tried

  mono --runtime = 4.0.30319.1 application.exe   

but that did not work either.

Any help would be appreciated.

Looks like you're experiencing this bug:

She is assuming that you installed & gt; Mono 2.8 (which was the first release to support .NET 4.0). If not, you should install a mono package recently.

The other thing is that Mono does not fully support WinForms. Unless you have developed your application with mono in the brain, then you will get a better chance that you feel that the use you used was not supported.

Comments