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

相关推荐
ktkiko118 小时前
用户模块——整合 Spring 缓存(Cacheable)
java·spring·缓存
西木Qi9 小时前
Redis数据迁移同步
数据库·redis·缓存
石去皿10 小时前
解决 LRU 缓存中的“堆使用后释放”问题
缓存
快来卷java11 小时前
深入剖析雪花算法:分布式ID生成的核心方案
java·数据库·redis·分布式·算法·缓存·dreamweaver
Chandler2416 小时前
Redis:哨兵机制
数据库·redis·缓存
Code额21 小时前
缓存 “三剑客”
redis·缓存
Chandler241 天前
Redis:事务
数据库·redis·缓存
MasterNeverDown1 天前
Docker Desktop 安装 Redis:轻松搭建本地缓存服务
redis·缓存·docker
梅西库里RNG1 天前
缓存使用纪要
缓存