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

相关推荐
一条泥憨鱼10 小时前
【Redis】数据类型和常用命令
java·数据库·redis·后端·缓存
小小工匠12 小时前
Redis 缓存替换策略:8 种淘汰策略与 LRU 实现剖析
数据库·redis·缓存
weixin_5231853214 小时前
Java面试高频题:Integer缓存机制与 equals、== 区别
java·缓存·面试
weixin_3947580314 小时前
CRMEB Pro 商品字段二开:为什么加一个字段会牵动 SKU、缓存和前端展示?
前端·缓存
焦虑的说说16 小时前
redis和数据库的一致性如何保证
数据库·redis·缓存
暗夜猎手-大魔王16 小时前
hermes源码学习8-上下文压缩与缓存
人工智能·缓存
Konwledging17 小时前
Cache Coherent(缓存一致性)
缓存
IT策士19 小时前
Redis 从入门到精通:持久化RDB 与 AOF
数据库·redis·缓存
YIN_尹20 小时前
探测+检测+缓解(PDM):让云租户自主防御微架构攻击
安全·缓存·架构
暗暗别做白日梦1 天前
Redisson 和redis 实现延迟消息
数据库·redis·缓存