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
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章