Issues with Gtk# 2.99.3

拥有回忆 提交于 2019-12-12 18:17:13

问题


I had to install Gtk# 2.99 because I must to use the CssProvider class. After install Gtk# 2.99.3 using the .msi installer I got these changes and some issues:

  1. Now I can use the CssProvider class.

  2. I needed to connect gio-sharp due to an error: The type "GLib.Application" is defined in an assembly that is not referenced. You must add a reference to assembly "gio-sharp, Version=3.0.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" (CS0012)

  3. I got next warning: Found conflicts between different versions of same dependent assembly (MSB3247)

  4. I got next exception: System.MissingMethodException: "Void System.Runtime.InteropServices.Marshal.StructureToPtr(!!0, IntPtr, Boolean)"

How I can resolve these issues?

Thanks!


回答1:


I got similar error when I use monodevelop. I found that it was because I did not tell IDE the location of the library that I used. error reported from monodevelop

To solve this I right-clicked on "References" and click edit reference..., then add the missing library (in my case, it was in gio-sharp (I clicked the check box), then everything is fine. right click on the reference tab to add the library



来源:https://stackoverflow.com/questions/26705399/issues-with-gtk-2-99-3

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!