mganss / HtmlSanitizer

Cleans HTML to avoid XSS attacks
MIT License
1.52k stars 198 forks source link

Could not load file or assembly 'HtmlSanitizer, Version=8.0.0.0... #437

Closed lorddev closed 1 year ago

lorddev commented 1 year ago

Getting this error:

Could not load file or assembly 'HtmlSanitizer, Version=8.0.0.0, Culture=neutral, PublicKeyToken=61c49a1a9e79cc28'. The system cannot find the file specified.

We are importing it in the .NET 6 csproj file like this:

    <PackageReference Include="HtmlSanitizer" Version="8.0.645" />

Are we doing something wrong?

mganss commented 1 year ago

No, the package reference looks legit. Try using a fresh console app to see if the issue occurs there also.