NuGet Console Management Package

Source: Internet
Author: User

???? 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.