public void Dispose() { _output.Write("Unloading."); //runTestRunner = false; #if !v600 && !v610 _selfPlugin.Enabled = false; ResharperPluginManager.Instance.Plugins.Remove(_selfPlugin); #else _selfPlugin.IsEnabled.SetValue(false); _pluginsDirectory.Plugins.Remove(_selfPlugin); _lifetimeDefinition.Terminate(); _host = null; #endif _selfPlugin = null; }