1

当前稳定的 GtkSharp 版本针对 .Net FW 4.0,我正在寻找一个针对 .Net FW 3.5 或更小的版本。

是否有针对 FW 3.5 的 GtkSharp 官方稳定分支?构建以 3.5 为目标的 2.12 自定义版本涉及什么?我可以考虑从自定义版本中删除一些功能,因为我最感兴趣的是绘图和文本输出 (pango)。非常感谢。

2013 年 11 月 8 日更新。

尝试忽略 MS 警告并设置 SpecificVersion = True,如此所述。该项目构建,但引用该项目的另一个项目没有。我在未解析的类型上收到了许多错误,以及一些警告,例如 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.任何想法如何追踪间接依赖关系?

4

1 回答 1

0

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).

于 2013-11-08T08:42:24.353 回答