Lưu ý
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử đăng nhập hoặc thay đổi thư mục.
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử thay đổi thư mục.
Applies to: package consumption • Supported versions: 3.3+
Clears or lists local NuGet resources such as the http-cache, global-packages folder, and the temp folder. The locals command can also be used to display a list of those locations. For more information, see Managing the global packages and cache folders.
Usage
nuget locals <folder> [options]
where <folder> is one of all, http-cache, packages-cache (3.5 and earlier), global-packages, temp (3.4+), and plugins-cache (4.8+).
Options
-ClearClears the specified folder.
-ConfigFileThe NuGet configuration file to apply. If not specified,
%AppData%\NuGet\NuGet.Config(Windows), or~/.nuget/NuGet/NuGet.Configor~/.config/NuGet/NuGet.Config(Mac/Linux) is used.-ForceEnglishOutput(3.5+) Forces nuget.exe to run using an invariant, English-based culture.
-?|-helpDisplays help information for the command.
-ListLists the location of the specified folder, or the locations of all folders when used with all.
-NonInteractiveSuppresses prompts for user input or confirmations.
-Verbosity [normal|quiet|detailed]Specifies the amount of detail displayed in the output:
normal(the default),quiet, ordetailed.
Also see Environment variables
Examples
nuget locals all -list
nuget locals http-cache -clear
For additional examples, see Managing the global packages and cache folders.