Exemplo n.º 1
0
        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;
                    }
                }
            }
        }
Exemplo n.º 2
0
 protected override void Initialize()
 {
     base.Initialize();
     IntegrationTestServiceCommands.Initialize(this);
 }