From f81aa67839d234b2ce8b825dc1c93c7680a36290 Mon Sep 17 00:00:00 2001 From: Kristian Williams Date: Fri, 12 Oct 2018 09:22:18 +0200 Subject: [PATCH] Added Environment Variable support to Blueprint Manager. (#96) --- Source/MDK/Commands/BlueprintManagerCommand.cs | 2 +- Source/MDK/MDKPackage.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/MDK/Commands/BlueprintManagerCommand.cs b/Source/MDK/Commands/BlueprintManagerCommand.cs index f5d9729..98a5921 100644 --- a/Source/MDK/Commands/BlueprintManagerCommand.cs +++ b/Source/MDK/Commands/BlueprintManagerCommand.cs @@ -26,7 +26,7 @@ protected override void OnExecute() } var model = new BlueprintManagerDialogModel { - BlueprintPath = projectInfo.OutputPath + BlueprintPath = Environment.ExpandEnvironmentVariables(projectInfo.OutputPath) }; BlueprintManagerDialog.ShowDialog(model); } diff --git a/Source/MDK/MDKPackage.cs b/Source/MDK/MDKPackage.cs index 7e11df9..f5e5522 100644 --- a/Source/MDK/MDKPackage.cs +++ b/Source/MDK/MDKPackage.cs @@ -413,7 +413,7 @@ public async Task DeployAsync(Project project = null, bool nonBlocking = f } } - string FormattedPath(string scriptOutputPath) => Path.GetFullPath(scriptOutputPath).TrimEnd('\\').ToUpper(); + string FormattedPath(string scriptOutputPath) => Path.GetFullPath(Environment.ExpandEnvironmentVariables(scriptOutputPath)).TrimEnd('\\').ToUpper(); /// /// Displays an error dialog