From 679de0aa41c0660db3ce1535b26fb101b037c09f Mon Sep 17 00:00:00 2001 From: Joao Matos Date: Sat, 27 Feb 2016 12:48:16 +0000 Subject: [PATCH] Fixed tests generation in build using Xamarin Studio. --- build/Tests.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/build/Tests.lua b/build/Tests.lua index 693b1b96..e53a16ce 100644 --- a/build/Tests.lua +++ b/build/Tests.lua @@ -64,12 +64,13 @@ function SetupTestGeneratorProject(name, depends) end function SetupTestGeneratorBuildEvent(name) + local runtimeExe = os.is("windows") and "" or "mono --debug " if string.starts(action, "vs") then local exePath = SafePath("$(TargetDir)" .. name .. ".Gen.exe") - prebuildcommands { exePath } + prebuildcommands { runtimeExe .. exePath } else local exePath = SafePath("%{cfg.buildtarget.directory}/" .. name .. ".Gen.exe") - prebuildcommands { "mono --debug " .. exePath } + prebuildcommands { runtimeExe .. exePath } end end