diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-07-07 12:23:35 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-07 12:23:35 +0200 |
commit | 72b3e81bdf4ecb92f52b056e0ad68a9ff6d8c63d (patch) | |
tree | 627184632d43ea339d580751872d5febc9c0c72f /modules | |
parent | 1e553e34fbc74e16fbecc59406c97e3a0f4a5698 (diff) | |
parent | 1637d0c699b6eb84275bf91ced9f64d0ef3efdd6 (diff) |
Merge pull request #62801 from raulsntos/ensure-nuget-path-exists
Diffstat (limited to 'modules')
-rw-r--r-- | modules/mono/editor/GodotTools/GodotTools/Build/NuGetUtils.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/mono/editor/GodotTools/GodotTools/Build/NuGetUtils.cs b/modules/mono/editor/GodotTools/GodotTools/Build/NuGetUtils.cs index 16dd1c8c6b..63b97e981e 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 </packageSources> </configuration> "; + System.IO.Directory.CreateDirectory(Path.GetDirectoryName(nuGetConfigPath)); System.IO.File.WriteAllText(nuGetConfigPath, defaultConfig, Encoding.UTF8); // UTF-8 with BOM } |