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

相关推荐
Jtti8 小时前
在 Debian 系统上清理缓存的方式和具体操作方法
运维·缓存·debian
2301_7819130514 小时前
关于缓存的一些思考?
缓存
LQ深蹲不写BUG16 小时前
Redis的五种常用数据类型。
数据库·redis·缓存
百思可瑞教育1 天前
前端性能优化:请求和响应优化(HTTP缓存与CDN缓存)
前端·网络协议·http·缓存·性能优化·北京百思可瑞教育·百思可瑞教育
chillxiaohan1 天前
GO学习记录九——数据库触发器的使用+redis缓存策略
数据库·缓存·golang
小钻风33661 天前
Redis初阶学习
数据库·redis·缓存
前端达人1 天前
从 useEffect 解放出来!异步请求 + 缓存刷新 + 数据更新,React Query全搞定
前端·javascript·react.js·缓存·前端框架
啥都不懂的小小白2 天前
微服务多级缓存:从问题到实战(小白也能看懂的亿级流量方案)
缓存·微服务·架构
xzl042 天前
pip的缓存
缓存·pip
gaoliheng0062 天前
应用开发使用缓存
缓存