Publish c# code library to NuGet

There are many complicated ways to publish your library to NuGet, but there is one very quick and very simple way…

Basically, to publish your library — you need to create a Nuget package and then upload it.

The package can be generated on the Build of the program. Before you initiate that, you need to go to Properties and then go to Package tab.

Once here, you will need to check the “Generate NuGet package on build” box. If checked, the package will be generated every time you build your program. You can also add some data about the library, this will be publicly visible on NuGet. It is also important to note, that if you check “Require license acceptance” box — you must also provide the license, otherwise it will fail.

You will find the package in project directory >> bin >> Release (if you chose “Release” build).

Finally, to upload the package, you will need to go to, then log in with your Microsoft account, go to “upload” page and upload the package.




Businessman, Author and Tech Expert

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Interesting IoT Product

MSSQL Find string similarities

ACoconut Governance Explained

Building: Bored Ape Puzzle Club.

You spin me right round baby

Perform MongoDB CRUD operation from ASP.NET Core Web API

Design Principles and Best Practices: Data engineering (D.E) is not Software engineering (S.E).

Release Notes May 2021 | Notify.Events

Notify.Events Release Notes May 2021

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
taurius litvinavicius

taurius litvinavicius

Businessman, Author and Tech Expert

More from Medium

Doing away with passwords in ASP.NET

Investigating the performance benefits of EF Core 6.0 compiled models feature

Unit Testing in C#

Write a code to retrieve data from table into a datagridview in CSharp