void DisplaySvcUtilNotFoundMessage() { string message = "Unable to find svcutil.exe. Please install the Windows SDK or specify the path to svcutil in Tools | Options."; SvcUtilMessageView.AppendLine(message); }
void SvcUtilProcessExited(object sender, EventArgs e) { SvcUtilMessageView.AppendLine("SvcUtil finished."); var runner = (ProcessRunner)sender; ExitCode = runner.ExitCode; WorkbenchSingleton.SafeThreadAsyncCall(() => OnProcessExited()); }
public void Run() { SvcUtilMessageView.ClearText(); var commandLine = new SvcUtilCommandLine(Options); commandLine.Command = GetSvcUtilPath(); SvcUtilMessageView.AppendLine(commandLine.ToString()); ProcessRunner runner = CreateProcessRunner(); runner.Start(commandLine.Command, commandLine.Arguments); }
public async void Run() { SvcUtilMessageView.ClearText(); var commandLine = new SvcUtilCommandLine(Options); commandLine.Command = GetSvcUtilPath(); using (ProcessRunner processRunner = new ProcessRunner()) { this.ExitCode = await processRunner.RunInOutputPadAsync(SvcUtilMessageView.Category, commandLine.Command, commandLine.GetArguments()); } if (ProcessExited != null) { ProcessExited(this, new EventArgs()); } }
void LineReceived(object sender, LineReceivedEventArgs e) { SvcUtilMessageView.AppendLine(e.Line); }