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

相关推荐
化作繁星29 分钟前
在 Vue 3 中,如何缓存和复用动态组件
前端·vue.js·缓存
千层冷面2 小时前
Redis除了做缓存还能做什么?
数据库·redis·缓存
Gazer_S2 小时前
【现代前端框架中本地图片资源的处理方案】
前端·javascript·chrome·缓存·前端框架
码有余悸3 小时前
Redis:高性能的键值存储系统
数据库·redis·缓存
guihong00414 小时前
深入理解 Redis 设计与集群管理
数据库·redis·缓存
吴晓斌kobe15 小时前
Java中的缓存技术:Guava Cache vs Caffeine vs Redis
java·redis·缓存·guava·caffeine
Kerwin要坚持日更17 小时前
一文讲解Redis的内存淘汰和过期策略
数据库·redis·缓存
不务专业的程序员--阿飞18 小时前
【深入探索 Caffeine:Java 缓存利器】
java·spring·缓存
hxj..21 小时前
Redis分布式缓存面试题
redis·分布式·缓存·分布式缓存
morris1311 天前
【redis】数据类型之hyperloglog
数据库·redis·缓存·hyperloglog·hll