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

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

  • Run repo on github
  • Make a code change
  • Open PR
  • Wait until the project developer merges it and publishes a new version on NuGet
  • Launch NuGet Local Update

The problem is step 4, which can take days or weeks (or forever). I am looking for a workflow in which I can immediately change the code to my project without waiting for support, but I have not worked in the .NET / NuGet ecosystem for some time and do not know how to do this.

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

+6
source share
2 answers

Fill out the repo, make changes, and then use a service such as Appveyor or MyGet to post your fork's personal packages.

+3
source

For a quick and dirty solution to this problem, I copied the DLLs from my fork of the NuGet package, added these DLLs to my project, and updated the project links to use them. My project still has a link to the original NuGet package (and all its third-party dependent ones), but now it also references the DLLs in the local folder.

0
source

Source: https://habr.com/ru/post/985104/


All Articles