public override void Run(Solution solution, IList <PackageReferencesForCreatedProject> packageReferencesForCreatedProjects) { List <InstallPackageAction> installPackageActions = CreateInstallPackageActions(solution, packageReferencesForCreatedProjects); ProgressMonitorStatusMessage progressMessage = ProgressMonitorStatusMessageFactory.CreateInstallingProjectTemplatePackagesMessage(); backgroundPackageActionRunner.Run(progressMessage, installPackageActions); }
public override void Run(Solution solution, IList <PackageReferencesForCreatedProject> packageReferencesForCreatedProjects) { List <IPackageAction> installPackageActions = CreatePackageActions(solution, packageReferencesForCreatedProjects); if (!installPackageActions.Any()) { return; } ProgressMonitorStatusMessage progressMessage = ProgressMonitorStatusMessageFactory.CreateInstallingProjectTemplatePackagesMessage(); PackageManagementMSBuildExtension.PackageRestoreTask = backgroundPackageActionRunner.RunAsync(progressMessage, installPackageActions); }