简体   繁体   中英

Using HTML agility pack on WP7.5

Is there a reference/guide for using HTML Agility Pack on WP7.5? I tried compiling the source on my VS2010 but I wasn't able to reference the DLL created on my local machine. Basically, I'm looking for a text extractor to obtain the text from a given URL. I understand that the HTML Agility Pack works best. Any ideas/suggestions? Thanks :)

Yes, I was the one who created that discussion. As said in that discussions page, the solution to this problem is to reference the System.Xml.XPath DLL from the MSFT SDK\\Silverlight 4.0\\Client folder. Thanks for the help.

Which solution did you load? The HAPPhone.sln solution in the latest build looks to be what should build a phone project. You can't reference any of the other solutions or DLLs created because they won't be compiled for the phone.

Jaapjan in the comment essentially was saying this but using the term "compact framework" for WP7, while technically interchangeable, will throw most people off. Basically put, you can't use a .NET 4.0 dll on a WP7/Silverlight/CompactFramework build because they're not the same.

I'll conclude this by saying I've not actually used this but if I were to need it, I would be using the HAPPhone solution. If that's the one you've been using and those DLLs don't work, there may be another issue entirely at play.

I think you may've also been the one that posted on their discussion thread here: http://htmlagilitypack.codeplex.com/discussions/282469 . If so, you kind of answered your own question and could've gave yourself some points, ;P. I'll respond to the discussion too since I know what's up unless someone beats me to it...

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM