Quantcast
Channel: htmlagilitypack Forum Rss Feed
Viewing all articles
Browse latest Browse all 655

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

$
0
0

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.

 


Viewing all articles
Browse latest Browse all 655

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>