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

Conflict Between HtmlSanitizer and Bunit Due to AngleSharp Version #558

Closed
HarshitDubey-Raik opened this issue Aug 5, 2024 · 4 comments
Closed

Comments

@HarshitDubey-Raik
Copy link

I am encountering a version conflict while writing unit tests using Xunit in C#. I have a project named Test which references another project named Worker. The Worker project includes HtmlSanitizer.
In the Test project, I need to install Bunit, which requires AngleSharp version >= 1.1.2.

This version mismatch is causing conflicts, and I am unable to resolve this dependency issue.

Following is the error being displayed while installing

Version conflict detected for AngleSharp. 
Install/reference AngleSharp 1.1.2 directly to project Tests to resolve this issue. 
Tests -> bunit 1.30.3 -> bunit.web 1.30.3 -> AngleSharp (>= 1.1.2) 
Tests -> Worker -> HtmlSanitizer 8.0.865 -> AngleSharp (= 0.17.1).

Any insights or suggestions on resolving this dependency conflict would be greatly appreciated.
Thank you!

@mganss
Copy link
Owner

mganss commented Aug 5, 2024

Try the latest prerelease version of HtmlSanitizer. It's compatible with AngleSharp 1.1.2. See also #491

@mganss mganss closed this as not planned Won't fix, can't repro, duplicate, stale Aug 5, 2024
@HarshitDubey-Raik
Copy link
Author

@mganss Actually the application using the HtmlSanitizer is in production, so cannot use this pre-release beta version, if you can please confirm till when can we except the proper release for the same ?

@tiesont
Copy link

tiesont commented Aug 6, 2024

@HarshitDubey-Raik AngleSharp.Css is the hold-up, last I was aware - waiting on a 1.0.0 release, so that there can be a fair amount of confidence that the API won't change significantly (which has been a bit of a problem with AngleSharp in the past, as noted in the linked issue).

@tiesont
Copy link

tiesont commented Sep 6, 2024

Worth noting? AngleSharp/AngleSharp.Css#175 (comment)

Right now there are no sponsors, so the project is on hold. There is no timeline for releasing the 1.0.0 of AngleSharp.Css.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants