nuget 管理全局包、缓存和临时文件夹

  1. 查看文件夹位置
bash 复制代码
dotnet nuget locals all --list
  1. 清空数据
bash 复制代码
# Clear the 3.x+ cache (use either command)
dotnet nuget locals http-cache --clear
nuget locals http-cache -clear

# Clear the 2.x cache (NuGet CLI 3.5 and earlier only)
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

https://learn.microsoft.com/zh-cn/nuget/consume-packages/managing-the-global-packages-and-cache-folders#viewing-folder-locations

相关推荐
guihong0041 小时前
Redis 深度解析:高性能缓存与分布式数据存储的核心利器
redis·分布式·缓存
qq_529835353 小时前
Redis作为缓存和数据库的数据一致性问题
数据库·redis·缓存
艾斯比的日常9 小时前
提升接口性能之缓存
缓存
想要打 Acm 的小周同学呀12 小时前
Redis三剑客解决方案
数据库·redis·缓存
HBryce2413 小时前
CPU多级缓存与缓存一致性协议
缓存
库库林_沙琪马14 小时前
Redis 缓存穿透、击穿、雪崩:问题与解决方案
数据库·redis·缓存
早起的年轻人19 小时前
Docket Desktop 安装redis 并设置密码
数据库·redis·缓存
草字19 小时前
vue,vue3 keepalive没有效果,无法缓存页面include无效,keep-alive
前端·vue.js·缓存
oioihoii19 小时前
深入理解 C++17 的缓存行接口
java·c++·缓存
qw94919 小时前
Redis(高阶篇)03章——缓存双写一致性之更新策略探讨
数据库·redis·缓存