Turning "on" local cache for NuGet

category: [ Visual Studio ] tags: [ NuGet ] [ Visual Studio ]
created: 25 Sep 2014 @ 10:03 modified: 24 Apr 2017 @ 13:57

My internet connection is slow or down quite a lot. One of the things Robert MacLean pointed out today in a presentation at a Microsoft Dev Day event today is that is that you can make use of the local cache from previous downloaded packages. Below is how to do this Smile

You can simple hit ctrl + Q type NuGet and then choose Package Manager Settings.


When the window opens click Browse.


This will open a Windows Explorer window with a path like below


Copy that path into your clipboard and go back to the Package Manager Settings window. Click on the Package Sources tab and then click on the new button


Give this new package source a name and paste the path into the Source textbox


Click OK and you sorted. Your pc will now use your local cache for packages as well Smile


Gordon Beeming works at Derivco in the sunny city of Durban, South Africa. When he's not hacking away at a keyboard in Visual Studio he'll generally be relaxing with his family or hitting the black top getting in some mileage. He is a Visual Studio ALM Ranger and Visual Studio ALM MVP.

Follow me on Strava


I plan on writing a bunch of online tools and sharing the code for how I made those tools. If you have any feedback you can ping me on Twitter (@GordonBeeming) or mail me [email protected].