Skip to content

Commit

Permalink
Always check if we need to restore
Browse files Browse the repository at this point in the history
  • Loading branch information
dellis1972 committed Oct 9, 2024
1 parent 9f2daaa commit fcecebd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions MonoGame.Framework.Content.Pipeline/ExternalTool.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ public static void RestoreDotnetTools ()
/// </summary>
public static int RunDotnetTool(string toolName, string args, out string stdOut, out string stdErr, string stdIn=null, string workingDirectory=null)
{
RestoreDotnetTools ();
var exe = FindCommand (toolName);
var finalizedArgs = args;
return ExternalTool.Run(exe, finalizedArgs, out stdOut, out stdErr, stdIn, workingDirectory);
Expand Down
2 changes: 1 addition & 1 deletion Tools/MonoGame.Content.Builder/BuildContent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ public void Build(out int successCount, out int errorCount)
var intermediatePath = ReplaceSymbols(_intermediateDir);
if (!Path.IsPathRooted(intermediatePath))
intermediatePath = PathHelper.Normalize(Path.GetFullPath(Path.Combine(projectDirectory, intermediatePath)));

_manager = new PipelineManager(projectDirectory, outputPath, intermediatePath);
_manager.Logger = new ConsoleLogger();
_manager.CompressContent = CompressContent;
Expand Down

0 comments on commit fcecebd

Please sign in to comment.