I have a .NET Standard 1.4 class library that references the NuGet System.ComponentModel.Annotations package (4.3.0).
Then I refer to this class library from the .NET Framework 4.6.2 test project. It builds fine, but at runtime I get the following error:
Event System.IO.FileLoadException HResult = 0x80131040 Failed
Message = Failed to load file or assembly 'System.ComponentModel.Annotations, Version = 4.1.0.0, Culture = neutral, PublicKeyToken = b03f5f7f11d50a3a' or one of its dependencies. The installed assembly manifest definition does not match the Help assembly. (Exception from HRESULT: 0x80131040)
I tried to add a link to the System.ComponentModel.Annotations (4.3.0) NuGet package from the net462 project, but that didn't make any difference.
I tried to add a link to the .NET Standard library from the net462 project, but still no luck.
Am I missing something? Is this a known bug if it works?
Any help is much appreciated!
source
share