diff options
author | Raul Santos <raulsntos@gmail.com> | 2022-07-07 00:48:40 +0200 |
---|---|---|
committer | Raul Santos <raulsntos@gmail.com> | 2022-07-07 01:53:32 +0200 |
commit | 1637d0c699b6eb84275bf91ced9f64d0ef3efdd6 (patch) | |
tree | a81222b020eb40551cd69df0c3315ffaebfac661 /modules/mono/editor/GodotTools | |
parent | 76d0a99707949c1c19363451ebfd59c3ac68a4b9 (diff) |
Ensure NuGet.config directory exists
Diffstat (limited to 'modules/mono/editor/GodotTools')
-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 } |