private void PreHandleTypeScriptProjects()
        {
            NpmHistory history = NpmProcessor.GetPackageHistory("@types/xrm");

            NpmPicker npmPicker = new NpmPicker(history);
            bool?     result    = npmPicker.ShowModal();

            if (!result.HasValue || result.Value == false)
            {
                throw new WizardBackoutException();
            }

            _typesXrmVersion = npmPicker.SelectedPackage.Version;
        }
Example #2
0
        private void PreHandleTypeScriptProjects()
        {
            var history = NpmProcessor.GetPackageHistory("@types/xrm");

            if (history == null)
            {
                MessageBox.Show(Resource.MessageBox_NPMError);
                throw new WizardBackoutException();
            }

            var npmPicker = new NpmPicker(history);
            var result    = npmPicker.ShowModal();

            if (!result.HasValue || result.Value == false)
            {
                throw new WizardBackoutException();
            }

            _typesXrmVersion = npmPicker.SelectedPackage.Version;
        }
Example #3
0
        private void PostHandleTypeScriptProject(Project project)
        {
            NpmProcessor.InstallPackage("@types/xrm", _typesXrmVersion, ProjectWorker.GetProjectPath(project), true);

            _dte.ExecuteCommand("ProjectandSolutionContextMenus.CrossProjectMultiItem.RefreshFolder");
        }