Can the dnx/dotnetcore package cache location be changed


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>


Use the 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.


  • Model with BatchNormalization: stagnant test loss
  • How to handle a Boolean when expecting a String in GSON? [closed]
  • C# TimeZone Calculation Problem
  • Copying attributes in Javascript
  • How to understand ndarray.reshape function?
  • Sort version strings on bash
  • Failed to resolve: com.google.gms.google-services:15.0.1:
  • Writing an RDA to CSV in R
  • MongoError: getaddrinfo ENOTFOUND undefined undefined:27017
  • Convert a 12 hour time format to 24 hour time format (keeping record of the day) in python
  • springboot + webpack dev server, does not change localhost bundle file after rebuilding
  • How can I selectively modify the src attributes of script tags in an HTML document using Perl?
  • How to have a website splash screen (web app)
  • Rails 4.1 environment variables not reloading
  • GRPC and types import error in App Engine Datastore
  • How to create a custom Powershell operator?
  • Iterate twice through a DataReader
  • CodeIgniter URI Parameter is partially bypassing an “if” statement
  • HttpClient: disabling chunked encoding
  • Clear fused location provider's location for testing
  • Bash if statement with multiple conditions
  • android.support.v7.widget.Toolbar VectorDrawableCompat IllegalStateException when using support lib
  • Automatically associate new Sonar project with custom quality profile and quality gate
  • How to get a value (ex: baseURL) in every Karate feature?
  • script to move all files from one location to another location
  • Validaiting emails with Net.Mail MailAddress
  • ILMerge & Keep Assembly Name
  • Which linear programming package should I use for high numbers of constraints and “warm starts” [clo
  • Javascript + PHP Encryption with pidCrypt
  • Symfony2: How to get request parameter
  • Weird JavaScript statement, what does it mean?
  • How do you troubleshoot character encoding problems?
  • Run Powershell script from inside other Powershell script with dynamic redirection to file
  • How to format a variable of double type
  • How to set the response of a form post action to a iframe source?
  • How to CLICK on IE download dialog box i.e.(Open, Save, Save As…)
  • Change div Background jquery
  • Qt: Run a script BEFORE make
  • reshape alternating columns in less time and using less memory
  • How to Embed XSL into XML