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

相关推荐
半桔6 小时前
【Linux手册】冯诺依曼体系结构
linux·缓存·职场和发展·系统架构
一个有女朋友的程序员6 小时前
Spring Boot 缓存注解详解:@Cacheable、@CachePut、@CacheEvict(超详细实战版)
spring boot·redis·缓存
yuren_xia7 小时前
在Spring Boot中集成Redis进行缓存
spring boot·redis·缓存
Lonely丶墨轩10 小时前
Redis 缓存策略:借助缓存优化数据库性能并保障数据一致性
数据库·redis·缓存
趁你还年轻_13 小时前
Redis大量key集中过期怎么办
数据库·redis·缓存
Wang's Blog21 小时前
Monorepo架构: Nx Cloud 扩展能力与缓存加速
缓存·架构
·云扬·21 小时前
【PmHub面试篇】PmHub 整合 TransmittableThreadLocal(TTL)缓存用户数据面试专题解析
缓存·面试·职场和发展
清风~徐~来21 小时前
【Redis】类型补充
数据库·redis·缓存
一只帆記21 小时前
SpringBoot EhCache 缓存
spring boot·后端·缓存
代码探秘者1 天前
【Redis从入门到精通实战文章汇总】
数据库·redis·缓存