I have a set of baseclasses in a .Net 4.5 project. Now we also need those baseclasses in another .Net 5 project. I can move these classes to their own assembly to avoid redundancy, however that assembly will not be compatible to one of the projects, no matter which of the two frameworks I choose. Redundancy is a big concern here, so please no 'hacky' solutions like synchronizing sources between project or anything else which tries to make redundancy practical.
What I need is a common ground, some framework version that would be compatible to both frameworks. Would perhaps .Net Standard be an option.
What I have tried:
Honestly, nothing yet. Extracting the classes to their own assembly is easy enough, but it's useless if there is no compatible framework version.