Fixes for NuGet package cache (#2996)
Fixes for NuGet package cache (#2996)

Respects the NUGET_PACKAGES environment variable and falls back to the USERPROFILE environment variable instead of HOMEPATH on Windows machines.
Fixes #1646.

Co-authored-by: Andrew McLachlan <e70edff49924d28993b028d4457c30faaea3b474@laingorourke.com.au>
RSuter/NSwag,RSuter/NSwag,quails4Eva/NSwag,quails4Eva/NSwag,RSuter/NSwag,quails4Eva/NSwag,RSuter/NSwag,RSuter/NSwag,quails4Eva/NSwag