Merge pull request #62801 from raulsntos/ensure-nuget-path-exists
This commit is contained in:
commit
72b3e81bdf
1 changed files with 2 additions and 1 deletions
|
@ -99,7 +99,7 @@ namespace GodotTools.Build
|
||||||
if (Utils.OS.IsWindows)
|
if (Utils.OS.IsWindows)
|
||||||
{
|
{
|
||||||
// %APPDATA% for both
|
// %APPDATA% for both
|
||||||
return new[] {Path.Combine(applicationData, "NuGet", "NuGet.Config")};
|
return new[] { Path.Combine(applicationData, "NuGet", "NuGet.Config") };
|
||||||
}
|
}
|
||||||
|
|
||||||
var paths = new string[2];
|
var paths = new string[2];
|
||||||
|
@ -156,6 +156,7 @@ namespace GodotTools.Build
|
||||||
</packageSources>
|
</packageSources>
|
||||||
</configuration>
|
</configuration>
|
||||||
";
|
";
|
||||||
|
System.IO.Directory.CreateDirectory(Path.GetDirectoryName(nuGetConfigPath));
|
||||||
System.IO.File.WriteAllText(nuGetConfigPath, defaultConfig, Encoding.UTF8); // UTF-8 with BOM
|
System.IO.File.WriteAllText(nuGetConfigPath, defaultConfig, Encoding.UTF8); // UTF-8 with BOM
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue