预邮程序 "Method Not Found" (AngleSharp.Dom.IElement.RemoveAttribute)

PreMailer "Method Not Found" (AngleSharp.Dom.IElement.RemoveAttribute)

我有这段代码使用 PreMailer 内联 CSS;

PreMailer.Net.PreMailer cleanser = new PreMailer.Net.PreMailer(htmlString);
PreMailer.Net.InlineResult result = cleanser.MoveCssInline(ignoreElements: ".ignore");
return result.Html

但是我遇到了这个异常:

Method not found: 'Void AngleSharp.Dom.IElement.RemoveAttribute(System.String)'

堆栈跟踪

[MissingMethodException: Method not found: 'Void AngleSharp.Dom.IElement.RemoveAttribute(System.String)'.]
PreMailer.Net.StyleClassApplier.ApplyStyles(IElement domElement, StyleClass clazz) +0
PreMailer.Net.StyleClassApplier.ApplyAllStyles(Dictionary`2 elementDictionary) +125
PreMailer.Net.PreMailer.MoveCssInline(Boolean removeStyleElements, String ignoreElements, String css, Boolean stripIdAndClassAttributes, Boolean removeComments) +241

答案可能很明显,但我只是没有点击。

AngleSharp:v0.9.9

PreMailer:v1.5.4

PreMailer 已发布更新。升级到 1.5.5 解决这个问题! AngleSharp 不需要回滚!