Can change dnx / dotnetcore package cache location

I have a machine on which the C: \ drive does not have enough space, and I would like to change the location where my DNX / DOTNET packages are installed in the folder under my D: \ drive.

Is it possible to configure the package cache?

NOTE. I don’t have the flexibility to change the location of my profile on another drive.

+3
source share
1 answer

Use the NUGET_PACKAGES environment NUGET_PACKAGES and set it to the path you prefer.

In particular, open System Properties, create user environment variables called NUGET_PACKAGES and set the path of your choice for them.

enter image description here

You will need to restart Visual Studio and any other programs to view the updated environment variable.

This works with Nuget 3.3 / .NET Core RC1.

+1
source

All Articles