Creating and Publishing Private NuGet Packages using Jenkins with Auto version

Why do we Have to Create Private Packages?

When working in an organization or a firm, we may have automation frameworks for web, mobile, API, and desktop. Each of these frameworks will have generic base modules/components that any team can use to automate the company’s applications.

Software and Tools Used

It is quite important to know how a code is running as it is before you use it. We’ll be creating a new project in Visual Studio as a sample to generate a NuGet package for it. You also have to be a bit familiar with GitLab and how to use it. We’ll then be using Jenkins to run our pipelines and host our nuget in a Baget server.

Creating the Private Package

First, create and configure a Class Library .Net Standard project. For this demo, I named mine ‘XYZAPIAutomation’; usually, it’s best to name it CompanyName and then give it the type of framework it is.

  1. Download and extract BaGet’s latest release
  2. Start the service with Dotnet BaGet.dll
  3. Browse http://localhost:5000/ in your browser



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
Abid k

Sharing knowledge brings me happiness. Showing real world use cases/usages I have seen, faced and solved as a tester in the industry.