❔ Patch an external dependency
Hi, I was wondering if it would be possible to add a nuget dependency, and also add a patch to change it for my own project only?
Or do I have to for the dependency and patch it, then add that fork to my project?
6 Replies
what kind of patching? reflection can get you pretty far, and Harmony can get you further (https://github.com/pardeike/Harmony)
Just some script tags in a razor page of a dependency. It's a 3 line patch if I were to edit the source code. Seems like reflection would be overkill and complicated. Though I appreciate the link to Harmony
you still can open an issue/pr if that can fix the library for later
I will do that as well. Though I am not super sure if it will be accepted or not given it's a kind of a specific issue with my setup, so I wouldn't blame them for rejecting it
if it's open source on github, fork it, patch it, and build it yourself. Then you can PR the fix to see if they'll take it.
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.