diff --git a/MonoGame.Framework.Content.Pipeline/ExternalTool.cs b/MonoGame.Framework.Content.Pipeline/ExternalTool.cs index 454ce310e15..53c67df0fb1 100644 --- a/MonoGame.Framework.Content.Pipeline/ExternalTool.cs +++ b/MonoGame.Framework.Content.Pipeline/ExternalTool.cs @@ -55,6 +55,7 @@ public static void RestoreDotnetTools () /// 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); diff --git a/Tools/MonoGame.Content.Builder/BuildContent.cs b/Tools/MonoGame.Content.Builder/BuildContent.cs index 3e19f9c7303..1fc49a85144 100644 --- a/Tools/MonoGame.Content.Builder/BuildContent.cs +++ b/Tools/MonoGame.Content.Builder/BuildContent.cs @@ -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;