void CreateAction ()
		{
			action = new RestorePackagesAction (
				solution,
				packageEvents,
				packageRepositoryCache,
				packageManagerFactory);
		}
        void RestorePackages(IProgressMonitor progressMonitor, ProgressMonitorStatusMessage progressMessage)
        {
            var action = new RestorePackagesAction(solution, packageManagementEvents);

            if (project != null)
            {
                action.Project = project;
            }
            action.Execute();

            RefreshProjectReferences();
            ForceCreationOfSharedRepositoriesConfigFile();

            progressMonitor.ReportSuccess(progressMessage.Success);
            packageManagementEvents.OnPackagesRestored();
        }
        void RestorePackages(ProgressMonitor progressMonitor, ProgressMonitorStatusMessage progressMessage)
        {
            var msbuildTargetsMonitor = new MSBuildTargetsRestoredMonitor(packageManagementEvents);

            using (msbuildTargetsMonitor) {
                var action = new RestorePackagesAction(solution, packageManagementEvents);
                if (project != null)
                {
                    action.Project = project;
                }
                action.Execute();
            }

            RefreshProjectReferences(msbuildTargetsMonitor.AnyMSBuildTargetsRestored);
            ForceCreationOfSharedRepositoriesConfigFile();

            progressMonitor.ReportSuccess(progressMessage.Success);
            packageManagementEvents.OnPackagesRestored();
        }
		void RestorePackages (ProgressMonitor progressMonitor, ProgressMonitorStatusMessage progressMessage)
		{
			var msbuildTargetsMonitor = new MSBuildTargetsRestoredMonitor (packageManagementEvents);
			using (msbuildTargetsMonitor) {
				var action = new RestorePackagesAction (solution, packageManagementEvents);
				if (project != null) {
					action.Project = project;
				}
				action.Execute ();
			}

			RefreshProjectReferences (msbuildTargetsMonitor.AnyMSBuildTargetsRestored);
			ForceCreationOfSharedRepositoriesConfigFile ();

			progressMonitor.ReportSuccess (progressMessage.Success);
			packageManagementEvents.OnPackagesRestored ();
		}
		void RestorePackages (IProgressMonitor progressMonitor, ProgressMonitorStatusMessage progressMessage)
		{
			var action = new RestorePackagesAction (solution, packageManagementEvents);
			if (project != null) {
				action.Project = project;
			}
			action.Execute ();

			RefreshProjectReferences ();
			ForceCreationOfSharedRepositoriesConfigFile ();

			progressMonitor.ReportSuccess (progressMessage.Success);
			packageManagementEvents.OnPackagesRestored ();
		}