Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why can't I use htmlagilitypack with windows phone 8? What else can I use to Parse HTML in WP8?

Why can't I use htmlagilitypack with windows phone 8? I appears to be supported on all platforms including Win8 Win8RT and WP7/WP7.5 and Silverlight 5. Is there one of the DLLS that would work?

What else can I use to Parse HTML in WP8? All suggestions are for the htmlagilitypack.

like image 875
user854534 Avatar asked Jan 04 '13 20:01

user854534


3 Answers

The issue appears to be that the NuGet package references the incorrect assembly for WP8.

By default it seems that it references the binary in sl4-windowsphone71, manually removing the reference to the HtmlAgilityPack DLL and referencing the binary in the sl3-wp folder removes the dependency problem.

That is how I have resolved it anyway.

like image 158
Anthony Avatar answered Oct 19 '22 06:10

Anthony


As anthony mentioned, just replace the reference from sl4-windowsphone71 to sl3-wp and it will work.

like image 32
sunder Avatar answered Oct 19 '22 07:10

sunder


It seems that Windows Phone 8 doesn't like the System.Xml.XPath.dll from the Silverlight SDK. My app that works fine on Windows Phone 7.5, won't work on WP 8. I am currently researching for another alternative for HTML Agility Pack.

like image 28
Timotei Avatar answered Oct 19 '22 07:10

Timotei