This project has moved. For the latest updates, please go here.

Warning: Argument type 'HtmlAgilityPack.HtmlNode' is not CLS-compliant

Topics: Developer Forum, User Forum
Feb 12, 2012 at 1:47 PM

I'm passing an HtmlNode as a method argument, and getting the following warning:

Argument type 'HtmlAgilityPack.HtmlNode' is not CLS-compliant

My assembly is marked as being CLS compliant. I got rid of the warning by marking the method as not CLS compliant per this post on StackOverflow:

[CLSCompliantAttribute( false )]

I searched the discussions and issues and didn't really find anything on this issue, just wondering if there is a better solution, and if this is a known issue.

Maybe nobody else has marked their assemblies as CLS compliant? I use FX-Cop and it complains about that, so that's why I have marked my assembly that way.