Using visual studio, I presume? As this likely is caused by visual studio's retarded way to resolve assemblies. It uses 'hint paths' with an assembly where they are to be found, but even if the assembly is in that folder (e.g. if you look at the 'Path' in the properties of the assembly reference) it might still reference another one from elsewhere.
To fix it, set the 'Specific Version' to 'true' for the reference and make sure the version is the right one.
An indirect reference is likely pulled in by the generated code you're referencing. So your cli app references HITc.OPCSupport, but that references the wrong dlls (likely due to this vs issue).
vs 2022 does a better job at this tho, but 2019 and earlier don't