How to publish a NuGet Package to GitHub Packages – The Quick Way

Pieter van der Westhuizen, a professional freelance web & mobile developer and founder of Coalition Software.
Search for a command to run...

Pieter van der Westhuizen, a professional freelance web & mobile developer and founder of Coalition Software.
A recent requirement came up for configurable dynamic forms in a mobile application. There are a few dynamic form packages for Flutter, but I wanted a bit more control over the schema and behavior of the form. Here follows my attempt at creating dyna...

If you've ever written a mobile app with Flutter that integrates with an API, then you'll know that there are a lot of model objects that get passed between the app and the API. JSON Serialization in Flutter can also take a fair amount of boilerplate...

Back in May 2020, Microsoft announced a new feature for Azure Blob Storage called Blob Index. Essentially, this enables you to add key/value tags to your Blob objects and be able to query said Blob objects without having to use a separate service lik...

In my last post, "Using AWS Cognito with Xamarin Forms", I showed how to authenticate with Amazon Cognito using Xamarin Forms and the Xamarin.Essentials Web Authenticator. In this post, we'll go through the process of using the AWS Cognito Hosted UI ...

In this post, I'll show you how to quickly and easily set up user authentication for your Xamarin Forms app using Amazon Cognito. AWS Cognito is a user identity management solution by Amazon. It is a really easy way to add authentication to your appl...

In the previous blog post, How to publish a NuGet Package to GitHub Packages, I’ve shown you hot to publish your NuGet package to GitHub Packages using the NuGet CLI.
Today, I’ll show you a way that is a little bit easier by using the Quick GitHub Package Visual Studio extension by Coalition Software.
Head over to the Visual Studio Marketplace and click on the big green “Download” button. This will download a .vsix file. After the file has downloaded, double-click on it to install it.

First, you must make sure that your project is either configured to generate a NuGet Package when it builds:

You can also right-click on your project and select “Pack” from the context-menu:

Next, right click on your project inside the Visual Studio Solution Explorer and click on “Create GitHub Package”

If it is the first time you run the extension, you will be prompted to select the path to the nuget.exe executable:

Choose the correct path to nuget.exe and click the “Use Selected Path” button to proceed to the next step.
Next, you’ll be prompted to create a new NuGet source, where the package must be pushed to:

The entries are explained below:
After you’ve completed all the necessary information, click on the “Add NuGet Source” button to proceed to the final step.
After you’ve completed the necessary setup steps. You’ll be able to push your NuGet Package to GitHub Packages. The extension will automatically pick up the path to the .nupkg file.

All you need to do is to click the “Push GitHub Package” button and it will automatically push the package to your GitHub Packages. ‘
That is it, feel free to download the extension and give it a test. Any problems, please let me know.
Thank you for reading. Until next time, keep coding!