AjaxControlToolkit
AjaxControlToolkit copied to clipboard
AjaxControlToolkit.HtmlEditor.Sanitizer nuget package missing dependency on AjaxControlToolkit package
The AJAX Control Toolkit 20.1.0
The AjaxControlToolkit.HtmlEditor.Sanitizer nuget package seems to be missing a dependency on the AjaxControlToolkit package. I had the impression that the AjaxControlToolkit.HtmlEditor.Sanitizer would be able to be used on it's own without AjaxControlToolkit (which is what I wanted) so I installed that nuget, but then I got a runtime assembly load error because IHtmlSanitizer is defined in AjaxControlToolkit and is depended on by AjaxControlToolkit.HtmlEditor.Sanitizer. Installing the AjaxControlToolkit nuget fixes the problem. So I think the AjaxControlToolkit.HtmlEditor.Sanitizer nuget package should be published with the metadata that says it depends on AjaxControlToolkit. Then if you install AjaxControlToolkit.HtmlEditor.Sanitizer nuget will also install AjaxControlToolkit and you wont get the runtime error.
The installation method
- [ ] Installer
- [x] NuGet package
- [ ] A custom build from the source code
Minimal steps to reproduce the bug
- Nuget install ONLY AjaxControlToolkit.HtmlEditor.Sanitizer
- Write some code that uses the sanitizer
- Run it
Actual result
Runtime exception trying to load IHtmlSanitizer type from AjaxControlToolkit.dll, which is not found.
Expected result
Should install all required dependencies.