其他分享
首页 > 其他分享> > dotnet 清理 nuget 缓存

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

标签:缓存,clear,cache,nuget,dotnet,locals
来源: https://www.cnblogs.com/WNpursue/p/14721307.html