Example #1
0
        private void Finish()
        {
            Visible = false;
            Application.DoEvents();
            DialogResult = DialogResult.OK;
            var modules = Modules.Where(module => module.Install).ToArray();

            ModulesInstaller.Install(modules, ExistingSolution);
            this.DTE2().ExecuteCommand("File.SaveAll");
            var  dotNetVersion = modules.Max(module => module.DotNetVersion);
            bool needsReload   = false;

            if (dotNetVersion > GetCurrentDotNetVersion())
            {
                UpdateDotNetVersion(dotNetVersion);
                needsReload = true;
            }
            if (modules.Any(module => module.IsWorldCreator))
            {
                InstallMonoCecil();
                needsReload = true;
            }
            if (needsReload)
            {
                ReloadSolution();
            }
        }
Example #2
0
        public static void Install(IEnumerable <XpandModule> modules, bool existingSolution)
        {
            var moduleInstaller = new ModulesInstaller(modules);

            moduleInstaller.Install(existingSolution);
        }