Better way to code in different Revit versions

As the title said, I found a little issue while I developed RIR in C# script for different Revit version.

Basically, I followed this guide.
I noticed that in the “Manage Assemblies” part, we are supposed to identify the file path for both “RevitAPI.dll” and “RevitAPIUI.dll” files.
However, the things is Revit put different .dll files in different version folders.
So currently, in order to make my code work in different environment I have to link all dlls in the C# scripts. But by doing so, grasshopper warns me every time I am not link to the other two versions’ dlls.

I am wondering if there’s any other way to make developing in different Revit version much easier?
Thanks in advanced.