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

相关推荐
一个有温度的技术博主3 小时前
Redis主从同步原理:从全量同步到增量同步的完整解析
redis·分布式·缓存
刘~浪地球11 小时前
Redis 从入门到精通(十一):持久化配置
数据库·redis·缓存
chxii12 小时前
Nginx的缓存配置--客户端缓存 (Browser Caching)和代理服务器缓存 (Proxy Server Caching)
nginx·缓存
萝卜白菜。13 小时前
TongWeb8.0 JNDI缓存
开发语言·python·缓存
惺忪979813 小时前
Redis安装与启动
数据库·redis·缓存
橘子编程13 小时前
计算机内存与缓存完全指南
java·计算机网络·spring·缓存
Renhao-Wan14 小时前
Java 中 Integer 对象的缓存机制与包装类特性
java·缓存
難釋懷16 小时前
Nginx本地缓存API
nginx·spring·缓存
0xDevNull16 小时前
Redis Lua 脚本详细教程
redis·缓存·lua
MyY_DO16 小时前
缓存穿透-damai
缓存