为什么我不能在Windows Phone 8上使用htmlagilitypack?我还能在WP8中使用什么解析HTML? [英] Why can't I use htmlagilitypack with windows phone 8? What else can I use to Parse HTML in WP8?
问题描述
为什么我不能在Windows Phone 8上使用htmlagilitypack?我似乎在包括Win8 Win8RT和WP7/WP7.5以及Silverlight 5在内的所有平台上都受支持.是否有可以使用的DLLS之一?
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?
在WP8中我还能使用什么解析HTML?所有建议均针对htmlagilitypack.
What else can I use to Parse HTML in WP8? All suggestions are for the htmlagilitypack.
推荐答案
问题似乎是NuGet程序包引用了WP8的不正确程序集.
The issue appears to be that the NuGet package references the incorrect assembly for WP8.
默认情况下,它似乎在sl4-windowsphone71中引用了二进制文件,手动删除了对HtmlAgilityPack DLL的引用,并在sl3-wp文件夹中引用了二进制文件,从而消除了依赖性问题.
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.
这篇关于为什么我不能在Windows Phone 8上使用htmlagilitypack?我还能在WP8中使用什么解析HTML?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!