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@libsuffix@" />
<dllmap dll="gdiplus.dll" target="@prefix@/lib/libgdiplus@libsuffix@" />

in $prefix/etc/mono/config.

It should read

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

Robert


_______________________________________________
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list

Reply via email to