I have a machine where the C:\ drive is running out of space and I'd like to change the location where my DNX/DOTNET packages are installed to a location under my D:\ drive.
Is the package cache location configurable?
<em>NOTE: I don't have the flexibility to change my profile location to a different drive.</em>Answer1:
NUGET_PACKAGES environment variable and set it to a path you prefer.
Specifically, open up System Properties, create a user environment variables called
NUGET_PACKAGES, and set it to a path of your choosing.
<a href="https://i.stack.imgur.com/0HaDT.png" rel="nofollow"><img alt="enter image description here" class="b-lazy" data-src="https://i.stack.imgur.com/0HaDT.png" data-original="https://i.stack.imgur.com/0HaDT.png" src="https://etrip.eimg.top/images/2019/05/07/timg.gif" /></a>
You will need to restart Visual Studio and any other programs for them to see the updated environment variable.
This works with Nuget 3.3 / .NET Core RC1.