InstallExtension() private méthode

private InstallExtension ( string vsixPath ) : void
vsixPath string
Résultat void
Exemple #1
0
        public static void SetupVanillaVsExperimentalInstance(string suffix)
        {
            AskIfNotOnBuildServerAndProductiveVs(suffix);

            try
            {
                _visualStudioInstance = new VsExperimentalInstance(VsExperimentalInstance.Versions.VS2015, suffix);
                if (string.IsNullOrEmpty(suffix))
                {
                    _keepDirtyVsInstance = true;
                    _visualStudioInstance.InstallExtension(VsixPath);
                }
                else
                {
                    if (!_keepDirtyVsInstance)
                    {
                        _keepDirtyVsInstance = AskToCleanIfExists();
                    }
                    if (!_keepDirtyVsInstance)
                    {
                        _visualStudioInstance.FirstTimeInitialization();
                        _visualStudioInstance.InstallExtension(VsixPath);
                    }
                }
            }
            catch (AutomationException exception)
            {
                exception.LogAndThrow();
            }
        }
Exemple #2
0
        public static void SetupVanillaVsExperimentalInstance(string suffix)
        {
            AskIfNotOnBuildServerAndProductiveVs(suffix);

            try
            {
                _visualStudioInstance = new VsExperimentalInstance(VsExperimentalInstance.Versions.VS2015, suffix);
                if (string.IsNullOrEmpty(suffix))
                {
                    _keepDirtyVsInstance = true;
                    _visualStudioInstance.InstallExtension(VsixPath);
                }
                else
                {
                    if (!_keepDirtyVsInstance)
                    {
                        _keepDirtyVsInstance = AskToCleanIfExists();
                    }
                    if (!_keepDirtyVsInstance)
                    {
                        _visualStudioInstance.FirstTimeInitialization();
                        _visualStudioInstance.InstallExtension(VsixPath);
                    }
                }
            }
            catch (AutomationException exception)
            {
                exception.LogAndThrow();
            }
        }