From 90307bc71e8f7a62fd07a93648aacd8091bff80e Mon Sep 17 00:00:00 2001 From: Andrew Stanton-Nurse Date: Tue, 24 Nov 2015 17:15:01 -0800 Subject: [PATCH] fix dotnet-repl-csi --- src/Microsoft.DotNet.Tools.Repl.Csi/Program.cs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/Microsoft.DotNet.Tools.Repl.Csi/Program.cs b/src/Microsoft.DotNet.Tools.Repl.Csi/Program.cs index 87673af21..8bbb4c70d 100644 --- a/src/Microsoft.DotNet.Tools.Repl.Csi/Program.cs +++ b/src/Microsoft.DotNet.Tools.Repl.Csi/Program.cs @@ -30,11 +30,10 @@ namespace Microsoft.DotNet.Tools.Repl.Csi var corerun = Path.Combine(AppContext.BaseDirectory, Constants.HostExecutableName); var csiExe = Path.Combine(AppContext.BaseDirectory, "csi.exe"); var csiArgs = string.IsNullOrEmpty(scriptOpt) ? "-i" : scriptOpt; - var command = File.Exists(corerun) && File.Exists(csiExe) ? - Command.Create(corerun, $@"""{csiExe}"" {csiArgs}") : - Command.Create(csiExe, csiArgs); - command = command.ForwardStdOut().ForwardStdErr(); - var result = command.Execute(); + var result = Command.Create(csiExe, csiArgs) + .ForwardStdOut() + .ForwardStdErr() + .Execute(); return result.ExitCode; } }