A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/AngleSharp/AngleSharp/issues/1186 below:

AngleSharp 1.2.0-beta.410 can not be loaded in .Net Framework because of System.Memory version error · Issue #1186 · AngleSharp/AngleSharp · GitHub

Prerequisites Description

On .Net Framework, not on .Net Core, AngleSharp 1.2.0-beta.410 can not be loaded because System.Memory 4.0.1.1 can not be found: Could not load file or assembly 'System.Memory, Version=4.0.1.1, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The system cannot find the file specified.

NuGet does not have System.Memory in version 4.0.1.1, and NuGet dependencies resolve to System.Memory >= 4.5.5.

It does not matter if you use the net461 or netstandard2.0 DLLs. Both fail on .Net Framework, both work fine on .Net (Core).

Steps to Reproduce
  1. nuget.exe install AngleSharp -Framework net461 -Version "1.2.0-beta.410" -OutputDirectory ".\AngleSharp_with-deps_net461" -NoHttpCache -DirectDownload -Verbosity quiet -DependencyVersion lowest
  2. Extract all net461 DLLs and place them in the same folder
  3. Import AngleSharp.dll in .Net Framework,not in .Net (Core)
    System.Reflection.Assembly.LoadFrom("path-to-anglesharp.dll")
    or in PowerShell 5: import-module -Path "path-to-anglesharp.dll"
  4. Error: Could not load file or assembly 'System.Memory, Version=4.0.1.1, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The system cannot find the file specified.
Expected Behavior

AngleSharp.dll can be loaded successfully on .Net Framework.

Actual Behavior

See description.

Possible Solution / Known Workarounds

Maybe an (automatic) binding redirect is missing (dotnet/announcements#31)?


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4