What is nuget? How nuget package management

This link: https: //blog.csdn.net/Microsoft_Mao/article/details/101159800
do windows developed, will sooner or later come into contact with nuget this thing, so today we have to look at what is nuget?

We start with some other familiar concepts start with, we should do the linux should have heard apt-get, yum, deb, etc., these are all related to package management.

The nuget is with them or something, nuget is a set of standards for code-sharing system, which contains the code inside the package to create, store, and share, corresponding to a corresponding tool to accomplish these things.

From Microsoft's definition:

a NuGet package is a single ZIP file with the .nupkg extension that contains compiled code (DLLs), other files related to that code, and a descriptive manifest that includes information like the package's version number.a NuGet package is a shareable unit of code, but does not require nor imply any particular means of sharing.

Translation down, nuget package is an extension is .nupkg zip file, this file contains the dll files, as well as related documents, as well as a manifest file that describes the package information. nuget packet is a unit of code can be shared, but does not do the requirements for sharing manner.

When developers want their own code (usually compiled) share it with other people, he can use nuget tools, these packaged code, then put the packages into a public or private shared space, these people want to use the code to get to these places from the package, and then added to their own projects, the calls to these code. nuget is the concrete realization of these steps.

A typical workflow nuget


1 Create a package
    is responsible for the source code, compiled into binary (assemblies), and then use these tools will be packaged into a dll nuget package. (to be continued)


2 sharing service
     pack producer, will be placed on the service package share.

3 Use the package
     user, by searching the package downloaded, and then added to their own projects go, it added to the list later, the producers exposed API, users can be used.

 
----------------
Disclaimer: This article is the original article CSDN bloggers "Microsoft_Mao", and follow CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement. .
Original link: https: //blog.csdn.net/Microsoft_Mao/article/details/101159800

Guess you like

Origin www.cnblogs.com/wfy680/p/11966473.html