How to change .nuget directory


prologue

  • Under VMWare Horizon View 7 - Full Clone environment, I have installed Visual Studio 2015 Community Edition.
  • I have experienced Profile size error dialogs during development with VS 2015
  • The User Profile size is limited = 300MB
  • Nuget tries to download the packages into C:\User.nuget which is limited under the restriction above.

How to change .nuget directory

  • set NUGET_PACKAGES environment variable
NUGET_PACKAGES = C:\Nuget\.nuget