I've got an app that connects to a program. So it's a plugin basically. And the program it attaches to has different versions (2021, 2022, 2023). To use API I have to reference to appropriate .dll file. And these references are the only things that changes. So the source code is the same in all my plugin's versions, but I have to change these references. How can I do that efficiently? Copying code between projects with different dlls attached isn't the best solution I guess... I'm using MS Visual Studio. Is it best to do it with git (how?) or maybe VS itself has some tools to achieve that?
Please help me, Przemek