dotnet 清理 nuget 缓存

dotnet 清理 nuget 缓存

https://docs.microsoft.com/en-us/nuget/consume-packages/managing-the-global-packages-and-cache-folders

# Clear the 3.x+ cache (use either command) 清除3.x+缓存(使用任一命令)
dotnet nuget locals http-cache --clear
nuget locals http-cache -clear

# Clear the 2.x cache (NuGet CLI 3.5 and earlier only) 清除2.x缓存(仅限NuGet CLI 3.5及更早版本)
nuget locals packages-cache -clear

# Clear the global packages folder (use either command) 清除全局程序包文件夹(使用任一命令)
dotnet nuget locals global-packages --clear
nuget locals global-packages -clear

# Clear the temporary cache (use either command) 清除临时缓存(使用任一命令)
dotnet nuget locals temp --clear
nuget locals temp -clear

# Clear the plugins cache (use either command) 清除插件缓存(使用任一命令)
dotnet nuget locals plugins-cache --clear
nuget locals plugins-cache -clear

# Clear all caches (use either command) 清除所有缓存(使用任一命令)
dotnet nuget locals all --clear
nuget locals all -clear
posted @ 2021-04-30 11:13  Pursue`  阅读(1258)  评论(0编辑  收藏  举报