mirror of
https://github.com/godotengine/godot
synced 2024-09-16 02:57:32 +00:00
Merge pull request #62801 from raulsntos/ensure-nuget-path-exists
This commit is contained in:
commit
72b3e81bdf
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue