Search code examples
visual-studionuget

Is it safe to delete .nuget folder inside my user profile folder?


I used Visual Studio to do some tests but I have already uninstalled it.

Has the ".nuget" folder (under my user profile) been created by Visual Studio and can I safely remove it now?


Solution

  • Yes, the .nuget folder is used as a cache for packages downloaded to speed up project restore and compilation. It can safely be removed. Worst case, it will have to download the packages again in the future.