On this page: https://learn.microsoft.com/en-us/windows/dev-drive/#storing-package-cache-on-dev-drive I did this: > Set a global environment variable NUGET_PACKAGES to that path. For example: setx /M NUGET_PACKAGES D:\<username>\.nuget\packages Then, this: > To verify the global-packages folder, run the dotnet nuget locals command: dotnet nuget locals global-packages --list The result of this command didn't show the changed value until I restarted my computer. Maybe a note about it should be added there.