title: Html Agility Pack for .NET 2.0
body: <p>I have a Visual Studio 2010 project that targets .NET v3.5 (it's a Sharepoint site). I need to use the <a href="http://htmlagilitypack.codeplex.com/" rel="nofollow">Html Agility Pack</a> in my project, but obviously I can't use the .NET v4.0 version.</p>
  
  <p>I downloaded the Html Agility Pack from <a href="http://htmlagilitypack.codeplex.com/" rel="nofollow">codeplex</a>, and added a reference to the DLL in the <code>Net20/</code> (.NET v2.0) directory to my Visual Studio project. However, when I go and check the reference properties, it says the "Runtime Version" is "v4.0.30319" rather than "v2.0.xxxxx", and thus my project won't compile. </p>
  
  <p>"OK..." I said, and tried the more official way, with <a href="http://nuget.org/packages/HtmlAgilityPack" rel="nofollow">NuGet</a> using the <a href="http://docs.nuget.org/docs/start-here/using-the-package-manager-console" rel="nofollow">Package Manager in Visual Studio</a>. I install Html Agility Pack, but again it doesn't compile because the runtime version is for .NET v4.0... </p>
  
  <p><em>Can I somehow set the version I want to install in NuGet, or does it do this automatically? Am I just getting screwed by some mistake of the HAP devs not providing the correct DLL for .NET v2.0?</em></p>
  
  <p>This is very frustrating, as I literally just need to compile this code I know works in .NET v4.0 and this project will be done. Any help is greatly appreciated.</p>