From 1637d0c699b6eb84275bf91ced9f64d0ef3efdd6 Mon Sep 17 00:00:00 2001 From: Raul Santos Date: Thu, 7 Jul 2022 00:48:40 +0200 Subject: [PATCH] Ensure NuGet.config directory exists --- modules/mono/editor/GodotTools/GodotTools/Build/NuGetUtils.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/mono/editor/GodotTools/GodotTools/Build/NuGetUtils.cs b/modules/mono/editor/GodotTools/GodotTools/Build/NuGetUtils.cs index 16dd1c8c6ba..63b97e981e5 100644 --- a/modules/mono/editor/GodotTools/GodotTools/Build/NuGetUtils.cs +++ b/modules/mono/editor/GodotTools/GodotTools/Build/NuGetUtils.cs @@ -99,7 +99,7 @@ namespace GodotTools.Build if (Utils.OS.IsWindows) { // %APPDATA% for both - return new[] {Path.Combine(applicationData, "NuGet", "NuGet.Config")}; + return new[] { Path.Combine(applicationData, "NuGet", "NuGet.Config") }; } var paths = new string[2]; @@ -156,6 +156,7 @@ namespace GodotTools.Build "; + System.IO.Directory.CreateDirectory(Path.GetDirectoryName(nuGetConfigPath)); System.IO.File.WriteAllText(nuGetConfigPath, defaultConfig, Encoding.UTF8); // UTF-8 with BOM }