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:
Bryan Thornbury 2016-06-09 15:05:27 -07:00 committed by Piotr Puszkiewicz
parent 45d8f174aa
commit 1dc6b0e2dd
5 changed files with 11 additions and 20 deletions

View file

@ -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");
}
}
}