nuget 管理全局包、缓存和暂时文件夹

[复制链接]
发表于 2025-12-24 03:08:10 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?立即注册

×
      
  • 查察文件夹位置
  1. dotnet nuget locals all --list
复制代码
      
  • 清空数据
  1. # Clear the 3.x+ cache (use either command)
  2. dotnet nuget locals http-cache --clear
  3. nuget locals http-cache -clear
  4. # Clear the 2.x cache (NuGet CLI 3.5 and earlier only)
  5. nuget locals packages-cache -clear
  6. # Clear the global packages folder (use either command)
  7. dotnet nuget locals global-packages --clear
  8. nuget locals global-packages -clear
  9. # Clear the temporary cache (use either command)
  10. dotnet nuget locals temp --clear
  11. nuget locals temp -clear
  12. # Clear the plugins cache (use either command)
  13. dotnet nuget locals plugins-cache --clear
  14. nuget locals plugins-cache -clear
  15. # Clear all caches (use either
复制代码
回复

使用道具 举报

登录后关闭弹窗

登录参与点评抽奖  加入IT实名职场社区
去登录
快速回复 返回顶部 返回列表