[Gtk-sharp-list] Novell GTK# installers - wrong Mono.Cairo reference

Christian Hoff christian_hoff at gmx.net
Wed Jan 7 04:13:12 EST 2009

Dimitar Dobrev wrote:
> I installed GTK# from 
> http://ftp.novell.com/pub/mono/gtk-sharp/gtk-sharp-sdk-2.12.7.msi here . I
> am now trying to compile 
> http://medsphere.org/community/project/openvista-cis OpenVista CIS  but it
> fails. The problem is that the method CairoHelper.Create in gdk-sharp
> returns an object of the type Context from the assembly Mono.Cairo,,
> 35e10195dab3c99f, while the Mono.Cairo included in the installer is,
> 0738eb9f132ed756. I.e., the public key tokens are different. The project can
> be compiled by using 
> http://medsphere.org/community/project/openvista-cis/blog/2008/10/02/gtk-212-win32-installer
> MedSphere's own installer , but I think this is a bug in the Novell
> installers anyway.
Hum, we seem to have two issues here:
1. Why does Gtk# link against version 2 of Mono.Cairo? Version 1.x would 
be the correct choice in my opinion.
2. If Mono.Cairo is included into the build, why does this assembly have 
the same public key as Gtk#(35e10195dab3c99f)? 0738eb9f132ed756  would 
be the correct.

Number two is a clear bug, I have filed a report on it:  

What are your thoughts about that, Mike?

Alan Battersby seems to have a similar issue:
> Thanks,
> My solution contains 4 projects, two use cairo. When I looked, the
> references for Mono.Cairo in those projects were to version 1.5 so I set
> to 2.0 and it all rebuilt ok.  So moral is be very awake when adding
> references to your project.
> Alan

More information about the Gtk-sharp-list mailing list