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.

image

When the window opens click Browse.

2014-09-25_11-53-06

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

2014-09-25_11-55-38

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

2014-09-25_11-57-35

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

2014-09-25_11-59-22

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

ABOUT ME

Gordon Beeming works at Nologo Studios in the sunny city of Durban, South Africa. He is the Lead for the Data and Services Team and has a strong focus on Developer Efficiencies and R&D. 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

TOOLS

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].