https://docs.microsoft.com/en-us/nuget/consume-packages/managing-the-global-packages-and-cache-folders

# Clear the 3.x+ cache (use either command) 清除3.x+缓存(使用任一命令)
dotnet nuget locals http-cache --clear
nuget locals http-cache -clear

# Clear the 2.x cache (NuGet CLI 3.5 and earlier only) 清除2.x缓存(仅限NuGet CLI 3.5及更早版本)
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

相关文章:

  • 2021-07-20
  • 2021-11-21
  • 2021-11-21
  • 2021-11-21
  • 2021-12-01
  • 2021-09-19
  • 2021-11-27
猜你喜欢
  • 2022-12-23
  • 2021-12-21
  • 2023-02-21
  • 2021-11-13
  • 2021-09-02
  • 2021-12-13
相关资源
相似解决方案