I have a .NET Standard 1.4 class library that references the System.ComponentModel.Annotations (4.3.0) NuGet package.
I\'m then referencing this class library from a
This usually happens when visual studio can't figure out the correct bindingRedirect.
Most likely the cause it that the version of the nugget does not match the version of the produced library.
To fix do this:
From package manage console do:
Get-Project –All | Add-BindingRedirect
to regenerate assemblyBinding
configuration at the config file
If didn't fix it, then add manually the binding redirection:
where: