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

相关推荐
XY.散人4 小时前
初识Redis · C++客户端list和hash
数据库·redis·缓存
·云扬·6 小时前
【技术派后端篇】 Redis 实现用户活跃度排行榜
数据库·redis·缓存
诸葛小猿8 小时前
缓存设计模式
缓存·设计模式
小鱼学习笔记10 小时前
4.17---实现商铺和缓存与数据库双写一致以及宕机处理
数据库·缓存
bing_15813 小时前
相比其他缓存/内存数据库(如 Memcached, Ehcache 等),Redis 在微服务环境中的优势和劣势是什么?
数据库·缓存·memcached·微服务场景
黄名富16 小时前
Redis 缓存—处理高并发问题
数据库·redis·缓存
努力也学不会java1 天前
【Redis】Redis中的常见数据类型(一)
数据结构·数据库·redis·缓存·bootstrap
XY.散人1 天前
初识Redis · 命令、数据结构补充、协议
数据库·redis·缓存
LiuYaoheng1 天前
深入理解Java包装类:自动装箱拆箱与缓存池机制
java·缓存
·云扬·1 天前
【技术派后端篇】Redis实现统计计数
数据库·redis·缓存