-
Notifications
You must be signed in to change notification settings - Fork 205
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
References to HtmlSanitizer have wrong version number when using the nuget #142
Comments
This is due to #35. Json.NET does it the same way. I've found that VS updates the DLLs most of the time when building after updating NuGet packages but not always. Proposals for other approaches welcome. |
This is a big problem for us because we rely on loading multiple versions of the same assembly inside one app domain. The scenario is sort of a plugin architecture, where the host app might use one version of HTMLSanitizer and each plugin might use another. Because both the latest version of HtmlSanitizer (4.0) as well as all versions since 3.0 have the same assembly version (3.0.0.0), our attempts to use Would it be possible to ship a new version of the nuget package with matching Yours is the best sanitizer out there and this is the only thing prohibiting us using it. |
Personally, I'd love to have all versions numbers be identical again, but I'm afraid this would cause pain to users who need the strong named assembly (see #35). The .NET open source library guidance docs for strong naming say:
Under versioning it says:
So I'm thinking to increase the AssemblyVersion to 4.0.0.0. Would this work with your use case? |
Updating the assembly version to 4.0.0.0 would be helpful. Thank you! The .NET guidance further states:
If we can know that any breaking changes will result in a major version increment then everyone should be happy going forward. |
🆗 done in 4.0.207. Regarding SemVer, see #35. |
Thank you, @mganss 💯 |
This causes a problem when you upgrade to a new version. The DLLs are not updated in the projects that reference your project because the referenced version number does not change.
The text was updated successfully, but these errors were encountered: