DBus-Sharp无法在Windows上运行

时间:2013-10-05 14:35:41

标签: c# mono monodevelop managed dbus

让我描述一下我做过的事情:

  • 已下载https://github.com/mono/dbus-sharp
  • 在xamarin studio(monodevelop)中添加了另一个项目,并将其命名为“DBus-Sharp”
  • 将我的项目引用添加到“DBus-Sharp”并尝试调用

    Bus bus = Bus.System; 
    
  • 得到以下异常

    System.Exception: Unable to open the system message bus. ---> System.DllNotFoundException: Die DLL "libsocket": Das angegebene Modul wurde nicht gefunden. (Ausnahme von HRESULT: 0x8007007E) kann nicht geladen werden. ---> System.Exception: 
    

    ---内部异常堆栈跟踪结束---

    at bei DBus.Unix.UnixSocket.socket(Int32 domain, Int32 type, Int32 protocol)
    at bei DBus.Unix.UnixSocket..ctor()
    at bei DBus.Transports.UnixNativeTransport.OpenUnix(String path)
    at bei DBus.Transports.UnixNativeTransport.Open(String path, Boolean abstract)
    at bei DBus.Transports.UnixTransport.Open(AddressEntry entry)
    at bei DBus.Transports.Transport.Create(AddressEntry entry)
    at bei DBus.Connection.OpenPrivate(String address)
    at bei DBus.Connection..ctor(String address)
    at bei DBus.Bus..ctor(String address)
    at bei DBus.Bus.Open(String address)
    at bei DBus.Bus.get_System()
    

    ---内部异常堆栈跟踪结束---

    at bei DBus.Bus.get_System()
    at bei AudioCuesheetEditor.MainClass.Main(String[] args) in e:\Projekte\Audio Cuesheet Editor (Windows)\src\AudioCuesheetEditor\MainClass.cs:Zeile 65.
    

我做错了什么?!

0 个答案:

没有答案