.Net 4.6 framework dll trying to load it's netstandard2.1 dependency

20 Views Asked by At

This 'Microsoft.Bcl.AsyncInterfaces' have dependencies on .NETFramework v4.6.2, .NETStandard v2.0 and v2.1. This dll is used in .NETFramework v4.8 application while accessing this dll i throws exception 'Could not load file or assembly 'netstandard, Version=2.1.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The system cannot find the file specified.'. Here i don't understand why it is trying to load netstandard 2.1 dll in a .NETFramework 4.8 application, so it is not supported or is it possible to skip loading the netstandard 2.1 dependency using config?. Please clarify this issue.

In the InnerException and FusionLog log message says, it tries to load the netstandard v2.1 dll from different locations.

enter image description here

Fusion Log:

enter image description here

.NETStandard v2.1 dependency:

enter image description here

0

There are 0 best solutions below