I have a few .NET apps where 90% of the codebase is virtually identical. I plan to pull this code out into a shared library, which all apps would then reference and make use of.
But what I really need is the inverse of this. Each of my apps consist of just 1 or 2 interface implementations which should simply 'plugin' to the shared code. They don't need their own Main() methods or entry points, the shared code can have all the logic to start things up and run, then each app just plugs in its own app-specific dependencies.
It therefore feels like some kind of plugin approach is better than a library approach. I don't want my apps to all call out to a shared library, I want that ("executable library") to call out to my apps, as discussed here: https://www.c-sharpcorner.com/UploadFile/a85b23/framework-vs-library/
Is this approach possible in .NET Core? How would this be achieved?