Skip to content
Create a gist now

Instantly share code, notes, and snippets.

I get this error: Unhandled Exception: System.TypeLoadException: Could not load type 'NDesk.DBus.Bus' from assembly 'NDesk.DBus, Version=, Culture=neutral, PublicKeyToken=f6716e4f9b2ed099'
using System;
using System.IO;
using System.Net;
using System.Text;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using Gtk;
using Evolution;
using Camel;
using NDesk.DBus;
using org.freedesktop;
using org.freedesktop.DBus;
namespace org.freedesktop
[Interface ("org.GTG")]
public interface GTG : Introspectable, Properties
void open_task_editor(string tid);
public class hello {
public static IntPtr hello_handle (IntPtr plugin_ptr)
Evolution.Mail.MenuTargetSelect menu_target_message = (Evolution.Mail.MenuTargetSelect)Marshal.PtrToStructure(plugin_ptr, typeof(Evolution.Mail.MenuTargetSelect));
Camel.MimeMessage message;
Camel.Folder folder;
folder = menu_target_message.folder;
String [] uids = menu_target_message.uids;
message = folder.getMessage(uids[0]);
String subject = message.subject;
Console.WriteLine("Subject: " + subject);
Console.WriteLine("URI: " + menu_target_message.uri + " " + uids[0]);
Bus bus = Bus.Session;
GTG gtg = bus.GetObject<GTG> ("org.GTG", new ObjectPath ("/org/GTG"));
return (IntPtr) 0;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.