Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8265191
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T04:42:50+00:00 2026-06-08T04:42:50+00:00

I have a Visual Studio 2010 project that targets .NET v3.5 (it’s a Sharepoint

  • 0

I have a Visual Studio 2010 project that targets .NET v3.5 (it’s a Sharepoint site). I need to use the Html Agility Pack in my project, but obviously I can’t use the .NET v4.0 version.

I downloaded the Html Agility Pack from codeplex, and added a reference to the DLL in the Net20/ (.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.

“OK…” I said, and tried the more official way, with NuGet using the Package Manager in Visual Studio. I install Html Agility Pack, but again it doesn’t compile because the runtime version is for .NET v4.0…

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?

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T04:42:52+00:00Added an answer on June 8, 2026 at 4:42 am

    What ended up working for me was the version here. I downloaded the “binaries”, added the DLL, and the runtime version was .NET 2.0 as needed. My program works just as it did under .NET 4.0.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a unit test project in Visual Studio 2010 (.NET 4) that utilizes
I have a Visual Studio 2010 project that is targeted to .NET Framework 3.5.
I have a vb.net (visual studio 2010) project that is version controlled with git
In my Visual Studio 2010 project I have files with .mm file extension, that
In Visual Studio 2010 I have an ASP.NET MVC 3 project called blahblah. As
Has anyone migrated a VB6 project to .Net with Visual Studio 2010? I have
I have a visual studio 2010 web project that when I publish it in
I have a C# (Visual Studio 2010) project that opens Internet Explorer 8 like
I'm having trouble creating a sharepoint project with .net 4.0. Using Visual Studio 2010,
I have a .Net 3.5 class library project that I've migrated to use Visual

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.