Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not load file or assembly 'AngleSharp, Version=0.16.0.0 #103

Closed
MaceWindu opened this issue Feb 8, 2022 · 2 comments · Fixed by #104
Closed

Could not load file or assembly 'AngleSharp, Version=0.16.0.0 #103

MaceWindu opened this issue Feb 8, 2022 · 2 comments · Fixed by #104
Labels

Comments

@MaceWindu
Copy link
Contributor

MaceWindu commented Feb 8, 2022

Bug Report

Description

AngleSharp.Css (0.16.3 and current master) built against AngleSharp 0.16.0 (see here), but nuspec dependency bumped to 0.16.1.

This results in error in

System.IO.FileLoadException: 'Could not load file or assembly 'AngleSharp, Version=0.16.0.0, Culture=neutral, PublicKeyToken=e83494dcdc6d31ea' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)'

in .net framework programs without binding redirect.

Steps to Reproduce

  • create netfx project
  • reference anglesharp.css 0.16.3 nuget
  • create instance of e.g. CssParser
  • run program

Expected behavior: it works

Actual behavior: it crashes due to dependent assembly version mismatch

Environment details: .net framework 4.8

Possible Solution

New release built against AngleSharp 0.16.1

@MaceWindu MaceWindu added the bug label Feb 8, 2022
@FlorianRappl
Copy link
Contributor

PR welcome.

MaceWindu added a commit to MaceWindu/AngleSharp.Css that referenced this issue Feb 9, 2022
MaceWindu added a commit to MaceWindu/AngleSharp.Css that referenced this issue Feb 9, 2022
@MaceWindu
Copy link
Contributor Author

#104

FlorianRappl added a commit that referenced this issue Feb 10, 2022
Fix AngleSharp dependency version (fix #103)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants