Is there any chance that you have mixed dll files in a project from different sources? Say, some of them are from nuget and others from SDK?
If it is the case I believe you need to remove all dependencies and re-install them from SDK.
Here is an article on how you can check your .Net project dependencies in Visual Studio:
Software Engineer, Kutir Mobility
Posted on behalf of Zebra Technologies