Make the nuget cache local to the repo (#3370)
* fixes #3368 * Update build nuget cache to be in the repo
This commit is contained in:
parent
45d8f174aa
commit
1dc6b0e2dd
5 changed files with 11 additions and 20 deletions
|
@ -45,11 +45,7 @@ namespace Microsoft.DotNet.Cli.Build
|
|||
|
||||
private static string GetNuGetPackagesDir()
|
||||
{
|
||||
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
|
||||
{
|
||||
return Path.Combine(Environment.GetEnvironmentVariable("USERPROFILE"), ".nuget", "packages");
|
||||
}
|
||||
return Path.Combine(Environment.GetEnvironmentVariable("HOME"), ".nuget", "packages");
|
||||
return Path.Combine(Dirs.RepoRoot, ".nuget", "packages");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue