AngleSharp.Css
for CSS support)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 Reproducenuget.exe install AngleSharp -Framework net461 -Version "1.2.0-beta.410" -OutputDirectory ".\AngleSharp_with-deps_net461" -NoHttpCache -DirectDownload -Verbosity quiet -DependencyVersion lowest
System.Reflection.Assembly.LoadFrom("path-to-anglesharp.dll")
import-module -Path "path-to-anglesharp.dll"
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.
AngleSharp.dll can be loaded successfully on .Net Framework.
Actual BehaviorSee description.
Possible Solution / Known WorkaroundsMaybe 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