Skip to content

Add Clear Cache button to VS Package Manager options

Ankit Mishra edited this page Aug 19, 2016 · 7 revisions

Problem

Allow users to clear NuGet cache from within Visual Studio

Who is the customer?

Package authors, consumers.

Evidence

Button existed on previous version of NuGet. This work is related to enabling locals command in dotnet cli.

Solution

Add a button to the VS Package Manager options which calls into the LocalsCommandRunner.cs from NuGet.Core.CommandLine.Commands. The call is similar as nuget locals -clear all from nuget CLI or dotnet nuget locals --clear all from dotnet CLI.

The result is displayed on a popup/message box.

The result will be displayed in a label below the Clear cache button along with the time stamp of completion of the operation. The error messages also contain a link to a help page. The screenshots below have been updated.

Screenshots

Clear Cache Button

Waiting for Clear cache operation

Success Message

Failure Message


Contributing

What's Being Worked On?

Check out the proposals in the accepted & proposed folders on the repository, and active PRs for proposals being discussed today.

Common Problems

Clone this wiki locally