[. Net] With your hands, you can throw your own class library to NuGet. netnuget

Source: Internet
Author: User

[. Net] With your hands, you can throw your own class library to NuGet. netnuget
With your hands, you can drag your own class library to NuGet.

We are used to right-clicking "Reference" on the project and selecting "manage NuGet packages" to download third-party class libraries. You may have thought about putting your own class libraries on NuGet one day, allows third parties to download data.

Figure 1

 

Directory
  • Register an NuGet account
  • Download NuGet package Resource Manager
  • Use NuGet package Resource Manager
  • Get Publish Key
  •   

 

1. register an NuGet account

Go to the official address: https://www.nuget.org/and select your register.pdf registration account ......

Figure 1-1

 

Ii. Download NuGet package Resource Manager

Click to download: NuGetPackageExplorer. After installation, the package must be in soy sauce.

Figure 2-1

 

3. Use the NuGet package Resource Manager

Open the package first, and select the third to create a new package (Ctrl + N ),

 

Figure 3-1

Figure 3-2

  

Next, edit the packaging information: Ctrl + K.

Figure 3-4

Figure 3-5

By comparing these parameters, you can find out the specific meaning or look up the dictionary when downloading a third-party class library in NuGet.

 

Now, try to find a DLL file and drop it in.

Figure 3-6

 

Then it will be like this:

Figure 3-7

Click "√" to save the modified information.

 

Figure 3-8

After the backup is made, click Save (Ctrl + S)

 

Finally, of course we have released our bags (Ctrl + P:

Figure 3-9

Figure 3-10

Enter a Key and click "Pushlish.

 

Figure 3-10

"Packge pubilished successfully" is displayed, indicating that the release is successful.

However, how can we get this Key? How can I get the Key? How can this problem be solved?

 

4. Obtain the Publish Key

We registered the NuGet Account at the beginning and now go to the page: https://www.nuget.org/accountto expand the API Key and copy your Key.

Figure 4-1

 

V,

Now, we can go back to the NuGet Package Manager to see our own class library.

Figure 5-1

Wen. HelloWorld is just finished.

 

 

Http://www.cnblogs.com/liqingwen/p/5859236.html.

[Reference] Lazy fat rabbit-NuGet Study Notes (2) package your class library on a graphical interface

 

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.