. NET Core Learning Note 2--managing NuGet Packages

Source: Internet
Author: User
Tags dotnet

. NET Core based NuGet packages. It is a zip file with a. nupkg suffix.

Tools

dotnet Tools

VS2017 Package Management Console

Both tools can be downloaded from the command line to install, update, upload the package (upload to the site to register the account first), or you can use the VS inside the UI tools to manage.

Project file Control Package

The project file (. csproj suffix) is an XML file that describes the relationship of the reference package and often requires manual editing to achieve high-level goals.

 <  itemgroup  Span style= "Color:rgb (0, 0, 255); >>  & lt;  packagereference  include  =  "version number"  >  packagereference  <!--...-->  </ itemgroup  Span style= "Color:rgb (0, 0, 255); >>  

Add a reference using the command dotnet Add package ID. You can also specify the location of the package –s the package location with parameters. As you can see, this nuget is a very flexible tool and does not require that the package be placed on the site or at any particular location.

Of course, you can also use the VS UI tool to do this, just to set up a location where you can add a search:

. NET Core Learning Note 2--managing NuGet Packages

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.