???? NuGet as an Extender for VS, has done the UI and we can get through the Manage NuGet Packages dialog box. Here we mainly talk about how to manage the package through the console. The use of the command line, in fact, has its advantages, for more familiar with the Linux system of students have deep experience, command line operation, flexibility is very large, more editing and so on. The NuGet console uses the PowerShell command line, and if the solution is not open, then we can only install the package through the PowerShell command line.
Let's take a look at some of NuGet's basic operations under the command line (I'm using the VS2015 Enterprise Edition Chinese version).
NuGet Lookup Package
Open the Tools menu, select NuGet Package Manager, and then click Package Manager Console.
?
This opens the Package Manager's console window
?
Below we can enter a command on the command line to operate. In the console of the command line, you can enter get-package–listavailable get so you can use the list of packages, below and everyone said a little trick, the use of Linux is known to the students, on the command line, Most of the time we don't need to enter the complete command, but after entering some letters, we press TAB to Auto-complete, NuGet also has such function, for example, we enter Get-p, then press the TAB key, then we will automatically complete the full Get-package command, If you press the TAB key just by entering get, all possible commands are listed, which is similar to the smart tip feature of vs.
?
Below we try to enter the command get-package–listavailable, we can see the list of packages that can be used, here to remind,-listavilable is the condition of the command, the purpose is to tell the command what action should be performed, It also supports pressing the TAB key for smart hints and auto-completion functions.
????
NuGet Console Management Package