[MonoDevelop] Error compiling GTK# apps with Mono/MonoDevelop on Windows

Justin Malcolm malcolm.justin at gmail.com
Thu Sep 24 20:05:27 EDT 2009


Hello,

Using the MonoDevelop 2.2 beta I can build GTK# projects under .NET 2.0SP1.
When I tell MonoDevelop to use Mono 2.4.2.3 instead I get the following
error.

"The reference to 'gtk-sharp, Version=2.12.0.0, Culture=neutral,
PublicKeyToken=35e10195dab3c99f' is not valid for the target framework of
the project."

It does not matter if I chose Mono/.NET 3.5 or Mono/.NET 2.0 for the target
framework.

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 2.4.2.3 + 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...
URL: http://lists.ximian.com/pipermail/monodevelop-list/attachments/20090924/e39de08c/attachment.html 


More information about the Monodevelop-list mailing list