Frage

The current and stable GtkSharp releases target .Net FW 4.0, and I am looking for a version which would target .Net FW 3.5 or smaller.

Is there an official stable branch of GtkSharp targeting FW 3.5? What is involved in building a custom version of 2.12 which would target 3.5? I can consider dropping some functionality from the custom version, as I am mostly interested in drawing and text output (pango). Thanks a lot.

Update 08-Nov-2013.

Tried ignoring MS warning and setting SpecificVersion = True, as described here. The project builds, but another project which references this one does not. I get a number of errors on unresolved types, and a few warnings like warning MSB3258: The primary reference "MyProject.dll" could not be resolved because it has an indirect dependency on the .NET Framework assembly "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" which has a higher version "4.0.0.0" than the version "2.0.0.0" in the current target framework. Any idea how the indirect dependency can be tracked down?

War es hilfreich?

Lösung

GtkSharp is still officially compatible with the 3.5 version of the .NET framework. (If you go to the sources, you can see that it is compiled with gmcs, not dmcs.)

My guess is that you're using a distribution which has changed this at the packaging level in order to save disk space (Debian and Ubuntu do this, in order to only ship one set of libraries compiled for the last version of the framework).

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top