예제 #1
0
		void RestorePackages(IProgressMonitor progressMonitor, ProgressMonitorStatusMessage progressMessage)
		{
			var commandLine = new NuGetPackageRestoreCommandLine(solution);

			progressMonitor.Log.WriteLine(commandLine.ToString());

			RestorePackages(progressMonitor, progressMessage, commandLine);
		}
		void CreateCommandLineWithSolution (string fileName, MonoRuntimeInfo monoRuntimeInfo, bool isMonoRuntime)
		{
			var solution = new FakePackageManagementSolution ();
			solution.FileName = fileName;
			commandLine = new NuGetPackageRestoreCommandLine (
				solution,
				monoRuntimeInfo,
				isMonoRuntime);
		}
		void RunRestore()
		{
			var commandLine = new NuGetPackageRestoreCommandLine(solution);
			commandLine.Command = NuGetExePath.GetPath();
			
			var runner = new ProcessRunner();
			runner.WorkingDirectory = Path.GetDirectoryName(solution.FileName);
			runner.RunInOutputPadAsync(outputMessagesView.OutputCategory, commandLine.Command, commandLine.Arguments).FireAndForget();
		}
예제 #4
0
		void RunRestore()
		{
			var commandLine = new NuGetPackageRestoreCommandLine(solution);
			commandLine.Command = NuGetExePath.GetPath();
			
			outputMessagesView.AppendLine(commandLine.ToString());
			
			ProcessRunner runner = CreateProcessRunner();
			runner.WorkingDirectory = Path.GetDirectoryName(solution.FileName);
			runner.Start(commandLine.Command, commandLine.Arguments);
		}
예제 #5
0
        void RunRestore()
        {
            var commandLine = new NuGetPackageRestoreCommandLine(solution);

            commandLine.Command = NuGetExePath.GetPath();

            var runner = new ProcessRunner();

            runner.WorkingDirectory = Path.GetDirectoryName(solution.FileName);
            runner.RunInOutputPadAsync(outputMessagesView.OutputCategory, commandLine.Command, commandLine.Arguments).FireAndForget();
        }
예제 #6
0
        void RunRestore()
        {
            var commandLine = new NuGetPackageRestoreCommandLine(solution);

            commandLine.Command = NuGetExePath.GetPath();

            outputMessagesView.AppendLine(commandLine.ToString());

            ProcessRunner runner = CreateProcessRunner();

            runner.WorkingDirectory = Path.GetDirectoryName(solution.FileName);
            runner.Start(commandLine.Command, commandLine.Arguments);
        }
		void CreateCommandLineWithSolution(string fileName)
		{
			IPackageManagementSolution solution = MockRepository.GenerateStub<IPackageManagementSolution>();
			solution.Stub(s => s.FileName).Return(fileName);
			commandLine = new NuGetPackageRestoreCommandLine(solution);
		}
 void RestorePackages(IProgressMonitor progressMonitor, NuGetPackageRestoreCommandLine commandLine)
 {
     Runtime.ProcessService.StartConsoleProcess(
         commandLine.Command,
         commandLine.Arguments,
         commandLine.WorkingDirectory,
         progressMonitor as IConsole,
         (e, sender) => progressMonitor.Dispose()
     );
 }
예제 #9
0
		void RestorePackages(
			IProgressMonitor progressMonitor,
			ProgressMonitorStatusMessage progressMessage,
			NuGetPackageRestoreCommandLine commandLine)
		{
			var aggregatedMonitor = (PackageManagementProgressMonitor)progressMonitor;

			IProcessAsyncOperation operation = Runtime.ProcessService.StartConsoleProcess (
				commandLine.Command,
				commandLine.Arguments,
				commandLine.WorkingDirectory,
				aggregatedMonitor.Console,
				(sender, e) => {
					using (progressMonitor) {
						OnPackageRestoreCompleted ((IAsyncOperation)sender, progressMonitor, progressMessage);
					}
				}
			);

			// Wait for console to finish just so check for updates does not run until
			// all packages are restored.
			operation.WaitForCompleted ();
		}
예제 #10
0
		void RestorePackages(
			IProgressMonitor progressMonitor,
			ProgressMonitorStatusMessage progressMessage,
			NuGetPackageRestoreCommandLine commandLine)
		{
			var aggregatedMonitor = (PackageManagementProgressMonitor)progressMonitor;

			Runtime.ProcessService.StartConsoleProcess(
				commandLine.Command,
				commandLine.Arguments,
				commandLine.WorkingDirectory,
				aggregatedMonitor.Console,
				(sender, e) => {
					using (progressMonitor) {
						OnPackageRestoreCompleted ((IAsyncOperation)sender, progressMonitor, progressMessage);
					}
				}
			);
		}