From 5c36e3f546a606e78649caba290bd705e0a8ebd7 Mon Sep 17 00:00:00 2001 From: John Sinnott Date: Sun, 10 Apr 2016 20:11:09 -0700 Subject: [PATCH] Fixed failure to handle spaces or other special characters when running mono exes. --- src/app/FakeLib/EnvironmentHelper.fs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/FakeLib/EnvironmentHelper.fs b/src/app/FakeLib/EnvironmentHelper.fs index 599e01a5c7a..6ce4d9b2908 100644 --- a/src/app/FakeLib/EnvironmentHelper.fs +++ b/src/app/FakeLib/EnvironmentHelper.fs @@ -147,7 +147,7 @@ let mutable monoArguments = "" /// Modifies the ProcessStartInfo according to the platform semantics let platformInfoAction (psi : ProcessStartInfo) = if isMono && psi.FileName.EndsWith ".exe" then - psi.Arguments <- monoArguments + " " + psi.FileName + " " + psi.Arguments + psi.Arguments <- monoArguments + " \"" + psi.FileName + "\" " + psi.Arguments psi.FileName <- monoPath /// The path of the current target platform