From fc5bb068fa0efbf78f11250c1c3f61d48a8e3359 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Karla=C5=A1?= Date: Thu, 22 Apr 2021 13:18:53 +0200 Subject: [PATCH] Fixes #3077: Relative --debug:custom-hive doesn't work anymore --- src/Microsoft.TemplateEngine.Cli/New3Command.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Microsoft.TemplateEngine.Cli/New3Command.cs b/src/Microsoft.TemplateEngine.Cli/New3Command.cs index 6c3f9688bf7..66f3c30292e 100644 --- a/src/Microsoft.TemplateEngine.Cli/New3Command.cs +++ b/src/Microsoft.TemplateEngine.Cli/New3Command.cs @@ -5,6 +5,7 @@ using System; using System.Collections.Generic; +using System.IO; using System.Linq; using System.Reflection; using System.Threading; @@ -171,6 +172,8 @@ private static int ActualRun(string commandName, ITemplateEngineHost host, ITele Reporter.Error.WriteLine("--debug:custom-hive requires 1 arg indicating the absolute or relative path to the custom hive".Bold().Red()); return 1; } + + hivePath = Path.GetFullPath(hivePath); } if (args.Length == 0)