[MonoDevelop] Error compiling GTK# apps with Mono/MonoDevelop on Windows
malcolm.justin at gmail.com
Thu Sep 24 20:05:27 EDT 2009
Using the MonoDevelop 2.2 beta I can build GTK# projects under .NET 2.0SP1.
When I tell MonoDevelop to use Mono 126.96.36.199 instead I get the following
"The reference to 'gtk-sharp, Version=188.8.131.52, Culture=neutral,
PublicKeyToken=35e10195dab3c99f' is not valid for the target framework of
It does not matter if I chose Mono/.NET 3.5 or Mono/.NET 2.0 for the target
I get this for all the GTK# related DLLs. I can delete the references to
the DLLs and reference the DLLs directly from the Mono GAC. If I do this,
when I try to remove the reference to gtk-sharp.dll it says that it can no
longer use the designer and then will no longer compile. It complains that
"Build" has not been defined or something. This happens even if I have
already added a reference to the gtk-sharp.dll in the Mono libs. Could it
be related to the fact that MonoDevelop itself was built on .NET and not
Mono? Something to do with Stetic? I can compile Windows Forms apps on
Mono fine as well as very 3.5ish console or ASP.NET apps including Java
integration via IKVM. It is just GTK# which is giving me a problem.
I used the Mono 184.108.40.206 + GTK# installer for Windows to install. Certainly
all the DLLs are there.
How do I get MonoDevelop to compile GTK# apps using the Mono framework on
Windows? Actually, what I really want to do is build MonoDevelop itself so
that it will use Mono instead of .NET.
I am using MonoDevelop on a Windows 2000 box so my install is a little
non-standard. MonoDevelop is running on top of .NET 2.0SP1 with just the
System.Core.dll from .NET 3.5SP1 dropped into the MonoDevelop directory. It
seems to work great though except for this issue.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Monodevelop-list