当我尝试使用以下命令运行我的单声道应用程序时:
mono SimpleBrowser.exe
我在我的 Mac 上收到以下错误:
Unhandled Exception: System.TypeInitializationException: An exception was thrown by the type initializer for Gtk.Application ---> System.DllNotFoundException: glibsharpglue-2
at (wrapper managed-to-native) GLib.Thread:glibsharp_g_thread_supported ()
at GLib.Thread.get_Supported () [0x00000] in <filename unknown>:0
at Gtk.Application..cctor () [0x00000] in <filename unknown>:0
--- End of inner exception stack trace ---
at SimpleBrowser.MainClass.Main (System.String[] args) [0x00000] in <filename unknown>:0 [ERROR]
FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: An exception was thrown by the type initializer for Gtk.Application ---> System.DllNotFoundException: glibsharpglue-2
at (wrapper managed-to-native) GLib.Thread:glibsharp_g_thread_supported ()
at GLib.Thread.get_Supported () [0x00000] in <filename unknown>:0
at Gtk.Application..cctor () [0x00000] in <filename unknown>:0
--- End of inner exception stack trace ---
at SimpleBrowser.MainClass.Main (System.String[] args) [0x00000] in <filename unknown>:0
我尝试在我的 Mac 上搜索丢失的 glibsharpglie-2 库,但找不到。我不确定问题是什么,因为应用程序在我从 Monodevelop 启动时运行。