[Mono-dev] Windows.Forms broken on Windows

Robert Jordan robertj at gmx.net
Sun Feb 2 14:12:30 UTC 2014


On 01.02.2014 20:27, Frank Fuchs wrote:
> The offical mono-package (32 bit for Windows) from mono-project.com seem
> broken when it comes to Windows.Form apps. I tested the following for
> mono-3.0.10 and mono-3.2.3, with Windows 7 Professional 64bit.
>
>> using System;
>> using System.Windows.Forms;
>> class Hello{
>>     static public void Main(){
>>             MessageBox.Show("Hello World");
>>   }
>> }
>
> and build & run it like:
>> ./bin/mono.exe lib/mono/4.5/mcs.exe test.cs
>> -r:lib/mono/4.5/System.Windows.Forms.dll
>> ./bin/mono.exe test.exe

This is caused by a wrong dll-map:

<dllmap dll="gdiplus" target="@prefix@/lib/libgdiplus at libsuffix@" />
<dllmap dll="gdiplus.dll" target="@prefix@/lib/libgdiplus at libsuffix@" />

in $prefix/etc/mono/config.

It should read

<dllmap dll="gdiplus" target="@prefix@/lib/libgdiplus at libsuffix@" 
os="!windows" />
<dllmap dll="gdiplus.dll" target="@prefix@/lib/libgdiplus at libsuffix@" 
os="!windows"  />

Robert




More information about the Mono-devel-list mailing list