[Mono-list] n00b porting first application to Mono/Linux

Jonathan Pobst monkey at jpobst.com
Thu Jul 8 12:27:52 EDT 2010


It looks like you are targeting .Net 4.0, but your Mono does not support 
4.0.  (Only the SVN version of Mono supports 4.0.)

So Mono is trying to run your program on 1.1, but you need at least 2.0 
for your application to work.

Re-compile your application for 2.0, 3.0, or 3.5, copy it over again, 
and then try to run it.

(Right-click->Properties in VS2010 on your project, and change the 
"Target Framework".)

Jonathan


On 7/8/2010 11:22 AM, crush157 wrote:
>
> Hi,
>
> I've written a desktop client in C# on Windows using Visual Studio Express
> 2010.
>
> I've copied the .exe to my Mono environment and tried to run the application
> from the command line.
>
> I get the following output:
>
> WARNING: The runtime version supported by this application is unavailable.
> Using default runtime: v1.1.4322
>
> ** (./CheckSumSpike.exe:1606): WARNING **: Missing method
> System.Windows.Forms.Application::SetCompatibleTextRenderingDefault(bool) in
> assembly
> /usr/lib/mono/gac/System.Windows.Forms/1.0.5000.0__b77a5c561934e089/System.Windows.Forms.dll,
> referenced in assembly /home/ewan/BladeRunner/Release/CheckSumSpike.exe
>
> Unhandled Exception: System.MissingMethodException: Method not found:
> 'System.Windows.Forms.Application.SetCompatibleTextRenderingDefault'.
>
> So my question is what else do I have to do to get this application running
> under Mono on Linux?
>
> Do I need any additional components to support the GUI for the application?
>
> Cheers,
>
> Ewan



More information about the Mono-list mailing list