How to add your own NuGet package management.

Source: Internet
Author: User

Considering the project has a lot of common things, every time to move to move, more trouble, specifically to study the NuGet package, look at the online various posts, write very detailed, but according to the implementation but will encounter various problems, so I come a concise, used to forget.

The first step, https://www.nuget.org/to the official website, register the account, get API Key (for publishing). By the way download tool Nuget.exe (used to register API Key, and package your assembly).

In the second step, go to the DOS command and point the command panel's path to the path where you downloaded the tool (Nuget.exe).

The third step is to run the following DOS command, NuGet setapikey 553a0bfd-42fe-448f-be51-a4afc95bcc84 (NuGet is case-sensitive and is guaranteed to be exactly the same as the name of the tool you downloaded). Results show Successful Registration

Fourth step, rebuild your solution to ensure that the assembly you want to package is up to date and complete.

Fifth step, run the following DOS command, NuGet pack e:\ project \ Class Library one \ Class library one. csproj (NuGet, which is case-sensitive, is guaranteed to be exactly the same as the name of the tool you downloaded, which is the role of packaging your assembly into a. nupkg file)

Sixth step, download a tool NuGet package Explorer (Professional Pack 30), use this tool to modify some configuration information, then directly upload, complete. (You'll be able to find your bag on NuGet in about 10 minutes or so).

I use this process roughly, which is all manual.

As for the details of the configuration, I believe that the various posts on the Internet are very detailed.

Small change, benefit from infinity.

How to add your own NuGet package management.

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.