From the Html Agility Pack download, which one of the 9 “HtmlAgilityPack.dll” do I use?

谁说我不能喝 提交于 2019-12-01 17:43:30

问题


There are nine folders in the downloaded zip file for HTML Agility Pack:

  • Net20
  • Net40
  • Net40-client
  • Net45
  • sl3-wp
  • sl4
  • sl4-windowsphone71
  • sl5
  • winrt45

I do not know what these folder names mean. Please explain which one I need in order to scrape data from html files using VS2010.

Please explain where I should put the files.


回答1:


The different versions are compiled against different .NET framework versions. Some frameworks, such as the WinRT or the Silverlight frameworks, have more limited functionality or require slightly different (and often slower) approaches to implement the features of the component you're using.

You will want to use the HTML Agility Pack version that best matches your applications. So:

  • net20: .NET 2.0 and 3.5
  • net40-client: .NET 4.0 client profile
  • net40: .NET 4.0 full profile (incl server binaries)
  • net45: .NET 4.5
  • sl3-wp: Windows Phone 7.0
  • sl4: Silverlight 4.0
  • sl4-windowsphone71: Windows Phone 7.5
  • sl5: Silverlight 5.0
  • winrt45: Windows 8 Modern UI App

When you want to use the component with multiple apps, choose the lowest common denominator.



来源:https://stackoverflow.com/questions/14164603/from-the-html-agility-pack-download-which-one-of-the-9-htmlagilitypack-dll-do

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!