HttpClientFactoryLite icon indicating copy to clipboard operation
HttpClientFactoryLite copied to clipboard

HttpClientFactoryLite.dll is not strong-named

Open daiplusplus opened this issue 4 years ago • 0 comments

Describe the bug

  • HttpClientFactoryLite.dll is not strong-named
  • So it cannot be used from a project that is strong-named, as strong-named assemblies can only load other strong-named assemblies.

To Reproduce

Steps to reproduce the behavior:

  1. Create a new .NET Framework 4.8 Console project.
  2. Give that project a strong-name (VS > Project Properties).
  3. Add a NuGet reference to HttpClientFactoryLite.
  4. Instantiate a HttpClientFactoryLite.HttpClientFactory instance in your Main method.
  5. The project builds, but fails to run with this exception:

Error: System.IO.FileLoadException: Could not load file or assembly 'HttpClientFactoryLite, Version=0.4.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. A strongly-named assembly is required. (Exception from HRESULT: 0x80131044).

Expected behavior

I expected this assembly to be strong-named.

Screenshots

N/A

Additional context

N/A

daiplusplus avatar Jan 06 '21 10:01 daiplusplus