Better Programming

Advice for programmers.

Follow publication

Member-only story

Creating NuGet Packages to Share Code

Edson Moisinho
Better Programming
Published in
5 min readAug 28, 2022
Photo by Kampus Production on Pexels

Most frameworks nowadays offer a set of components that is enough to build great applications, but on the other hand, they also provide a way to share our custom components to solve specific problems which most of the time allows the collaboration of the community to improve those pieces.

The .Net framework uses natively NuGet as a package manager for libraries such as Newtonsoft, Moq, Automapper, and many many others.

What many developers maybe do not know, is that creating and sharing a NuGet package with our code is extremely simple and quick and that is what I am going to explain in this article.

If you’re not a Medium paid member, you can read this story for free using the following link

What are we going to pack?

A couple of days ago I wrote an article about how we can intercept HTTP requests made using Refit and logging them as a curl and now I will use that code to create our new NuGet package.

We can find the whole code on this GitHub repo, under my profile.

I will adapt this code to be easily used by other developers in their projects.

Preparing the package

Create an account to read the full story.

The author made this story available to Medium members only.
If you’re new to Medium, create a new account to read this story on us.

Or, continue in mobile web

Already have an account? Sign in

Edson Moisinho
Edson Moisinho

Written by Edson Moisinho

A Software Engineer writing about programming, technology, and lifestyle

Responses (1)