System.Net.Http NuGet package 4.3.0 reference generates System.IO.FileLoadException on System.Diagnostics.DiagnosticSource ver 4.0.0.0 reference

前端 未结 3 1662
失恋的感觉
失恋的感觉 2021-02-12 23:04

Description of the problem:

A shared library \"shared.dll\" project references System.Net.Http NuGet package 4.3.0. The application that references \"shared.dll\" fails

3条回答
  •  南方客
    南方客 (楼主)
    2021-02-12 23:20

    I feel it would be factually correct to answer my own question because 99% of the the answer is already there.

    The development team at github/corefx acknowledged this issue resolution would be a side effect of another known issue fix by the nature of removing the hard reference to System.Diagnostics.DiagnosticSource.dll from System.Net.Http project.

    Until then: any of two provided workarounds is OK to use based on personal preferences.

提交回复
热议问题