Leveraging the NuGet Package Manager console

Source: Internet
Author: User

Each integrated development environment provides download and installation of the expansion pack, and the call Package management console under the Microsoft Visual Integrated development environment, which we call the Chulia package management Console.

In the tools =>nuget Package Manager and the package management console, open the Command window.

These two commandments must be learned

Pm> install-package Package [-parameter]
Pm> uninstall-package Package [-parameter]

Optional parameters
(Specify version number or project name)

pm> install-package microsoft.aspnet.mvc-version 4.0.20710
pm> install-package microsoft.aspnet.mvc-version 4.0.20710-project name

The words that begin with UN in English are basically antonyms, such as lock unlock

If you're not sure what the bag is,

Pm> get-package-listavaliable

But this will be a lot of console printing, too many packages.
Should be screened, with this command with 3 parameters, I have not mastered, this command will still print a lot of packages

Pm> Get-package-listavailable-filter Asp.net.mvc

If you are unsure of the name of the package, you should search on the nuget.org website, each of which provides a complete command.
Some items appear what assembly references are incomplete, the version is incorrect, you can use this Package manager, re-uninstall and install to fix these problems.

Here are the common packages

pm> install-package microsoft.aspnet.mvcpm> install-package Microsoft.webapi
Pm> Install-package Microsoft.webpage
Pm> Install-package EntityFramework
Pm> Install-package JQuery

Pm> Install-package Bootstrap
pm> install-package fireasy Asahi God developed the bag outside

All commands
Https://docs.nuget.org/consume/Package-Manager-Console-PowerShell-Reference

Leveraging the NuGet Package Manager console

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.