Stop Visual Studio from Eating Disk Space

If you you Visual Studio and NuGet, chances are that you have been affected by this issue!

Navigate to \Users\{Your username}\AppData\Local\Temp\NuGetScratch and check the size of the folder. In my case, I had 40GB of temporary files that have never been cleaned up.

Now in Visual Studio, navigate to Tools > NuGet Package Manager > Package Manager Settings


In the dialog box, click Clear All NuGet Cache(s). This will empty out several temporary folders, including the previously mentioned NuGetScratch which is the worst offender. Note that this operation may take some time and Visual Studio may be unresponsive while the operation completes.

Thanks for reading!

Comments

Popular posts from this blog

IIS Express Client Certificates

ASP.NET Identity Remember Me