Publishing NuGet package to NuGet store

Once you are done with your class library, have generated the NuGet package, and tested it locally, you may want to push it to the NuGet gallery for public availability so that others can find, install, and use your library from NuGet Store.

To begin publishing your NuGet package, open any browser window and navigate to https://www.nuget.org. If you don't have an account, you need to register in the portal; otherwise, you can sign in with your account credentials. The Register / Sign in link is available at the top-right corner of the website:

Once you are signed in to NuGet, click Upload Package. Under the Choose a package... label, click on the Browse... button to select the .nupkg file that you want to upload and publish to NuGet Store. Click the Upload button to continue:

Once the package has been uploaded, verify all the details. You may want to change the metadata information from this screen. Click on Submit to finally publish it.

If you have uploaded any pre-release package, the site will inform you about the package. Also, a label will show This package has not been indexed yet, as it takes some time to index your package and show it in search results. Consider the following screenshot:

Once the package has been uploaded and published, you will be able to download and install the package directly from NuGet Package Manager, pointing your gallery to nuget.org as the package source. You can also use the Package Manager Console to download it via the command line.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.138.114.38