Skip to content

Commit

Permalink
Fix Mac BuildSimpleProject
Browse files Browse the repository at this point in the history
  • Loading branch information
dellis1972 committed Aug 27, 2024
1 parent 84da840 commit 1c229c9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Tools/MonoGame.Tools.Tests/BuilderTargetsTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,10 @@ string FindTool (string toolName)
bool RunBuild(string buildTool, string projectFile, params string[] parameters)
{
var root = Path.GetDirectoryName(typeof(BuilderTargetsTest).Assembly.Location);
var psi = new ProcessStartInfo(FindTool(buildTool))
var tool = FindTool(buildTool);
var psi = new ProcessStartInfo(tool)
{
Arguments = "build " + projectFile + " -t:IncludeContent " + string.Join(" ", parameters) + " -tl:off -bl",
Arguments = $"build {projectFile} -t:IncludeContent {string.Join(" ", parameters)} -tl:off -bl -p:DotnetCommand={tool}",
WorkingDirectory = root,
UseShellExecute = false,
RedirectStandardOutput = true,
Expand Down

0 comments on commit 1c229c9

Please sign in to comment.