Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to quickly make a fix in NuGet package hosted on GitHub?

I am using a NuGet package whose source code is on GitHub. I need to make a change in the source code and I know how to do it, however, I'm not sure how to make this change available to my project immediately. I guess the standard process is something like this:

  1. Fork the repo on GitHub
  2. Make the code change
  3. Open a PR
  4. Wait until the project maintainer merges it and publishes a new release on NuGet
  5. Run local NuGet update

The problem is step 4 which can take days or weeks (or forever). I am looking for a workflow in which I can bring the code change to my project immediately, without the wait for the maintainer, but I haven't worked with in the .NET / NuGet ecosystem for a while and have no idea how it should be done.

For example, should I publish a forked NuGet package on nuget.org? Should I create my own private feed? How? Where? Etc.

like image 257
Borek Bernard Avatar asked Apr 14 '15 09:04

Borek Bernard


People also ask

How use NuGet command line?

To use any command, open a command window or bash shell, then run nuget followed by the command and appropriate options, such as nuget help pack (to view help on the pack command). This documentation reflects the latest version of the NuGet CLI.

How do I create a Nupkg?

Run the pack command Select Build > Configuration Manager, and then set the Active solution configuration to Release. Select the AppLogger project in Solution Explorer, and then select Build > Pack. Visual Studio builds the project and creates the . nupkg file.


1 Answers

Fork the repo, make the change and then use service like Appveyor or MyGet to host private packages of your fork.

like image 147
Aleš Roubíček Avatar answered Sep 21 '22 11:09

Aleš Roubíček