protected override void Initialize() { base.Initialize(); IntegrationTestServiceCommands.Initialize(this); var shell = (IVsShell)GetService(typeof(SVsShell)); object installDirectoryObject; if (ErrorHandler.Succeeded(shell.GetProperty((int)__VSSPROPID.VSSPROPID_InstallDirectory, out installDirectoryObject))) { string installDirectory = installDirectoryObject as string; if (installDirectory != null) { if (!File.Exists(Path.Combine(installDirectory, @"PublicAssemblies\Microsoft.VisualStudio.CodingConventions.dll"))) { AppDomain.CurrentDomain.AssemblyResolve += CurrentDomain_AssemblyResolve; } } } }
public static void Initialize(Package package) { Instance = new IntegrationTestServiceCommands(package); }
protected override void Initialize() { base.Initialize(); IntegrationTestServiceCommands.Initialize(this); }