コード例 #1
0
        void GenerateMonoCommandLine(IPackageManagementSolution solution)
        {
            Arguments = String.Format(
                "--runtime=v4.0 \"{0}\" restore \"{1}\"",
                NuGetExePath.GetPath(),
                solution.FileName);

            Command = Path.Combine(monoRuntime.Prefix, "bin", "mono");
        }
コード例 #2
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();
        }
コード例 #3
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 GenerateWindowsCommandLine(IPackageManagementSolution solution)
 {
     Arguments = String.Format("restore \"{0}\"", solution.FileName);
     Command   = NuGetExePath.GetPath();
 }