❔ 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
Will
Will14mo ago
what kind of patching? reflection can get you pretty far, and Harmony can get you further (https://github.com/pardeike/Harmony)
AnInternetTroll
AnInternetTrollOP14mo ago
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
x0rld 👻 🎃
x0rld 👻 🎃14mo ago
you still can open an issue/pr if that can fix the library for later
AnInternetTroll
AnInternetTrollOP14mo ago
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
JakenVeina
JakenVeina14mo ago
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.
Accord
Accord14mo ago
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.
Want results from more Discord servers?
Add your server