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 944529
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T22:36:25+00:00 2026-05-15T22:36:25+00:00

Visual Studio 2008 did let you reference an assembly A from an Assembly B

  • 0

Visual Studio 2008 did let you reference an assembly A from an Assembly B when A was targeting .NET 3.5 and B was targeting .NET 2.0.

Visual Studio 2010 doesn’t allow for this any more. The full issue is described on MSDN:

You can create applications that
reference projects or assemblies that
target different versions of the .NET
Framework. For example, if you create
an application that targets the .NET
Framework 4 Client Profile, that
project can reference an assembly that
targets .NET Framework version 2.0.
However, if you create a project that
targets an earlier version of the .NET
Framework, you cannot set a
reference in that project to a project
or assembly that targets the .NET
Framework 4 Client Profile or the .NET
Framework 4
. To eliminate the error,
make sure that the profile targeted by
your application is compatible with
the profile targeted by the projects
or assemblies referenced by your
application.

Is there any way I can get VS2010 to behave like VS2008 in this regard (i.e. allowing references to assemblies targeting higher framework versions)?

I know the reasoning behind the VS 2010 behavior and the deployment considerations I need to be aware of, no need to repeat that.

The exact error is:

warning MSB3268: The primary reference
“xxx.dll”
could not be resolved because it has
an indirect dependency on the
framework assembly “System.Core,
Version=3.5.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089” which
could not be resolved in the currently
targeted framework.
“.NETFramework,Version=v2.0”. To
resolve this problem, either remove
the reference
“xxx.dll”
or retarget your application to a
framework version which contains
“System.Core, Version=3.5.0.0,
Culture=neutral,
PublicKeyToken=b77a5c561934e089”.

  • 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-05-15T22:36:26+00:00Added an answer on May 15, 2026 at 10:36 pm

    Step1: Unload the referencing project targeting .NET 2.0

    Step2: Right click the unloaded project and select edit from context menu

    Step3: Add <SpecificVersion>true</SpecificVersion> to the reference. Below is a sample from my repro solution:

    <ProjectReference Include="..\HighFX\HighFX.csproj">
      <Project>{8DD71CAF-BEF7-40ED-9DD0-25033CD8009D}</Project>
      <Name>HighFX</Name>
      <SpecificVersion>true</SpecificVersion>
    </ProjectReference>
    

    Step4: Reload the project.

    Now your should be able to build within the Visual Studio 2010, there could still be a warning as below, but the build can be successful.

    Source: http://social.msdn.microsoft.com/Forums/en-US/msbuild/thread/dfadfb34-5328-4c53-8274-931c6ae00836

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

Sidebar

Related Questions

Is it possible to connect to 2010 TFS from Visual Studio 2008 Professional There
So this is a Visual Studio 2008, .NET, WPF, XBAP, Windows 7 question, regarding
Visual Studio 2008 w/Sp1 To reproduce my problem I simply create a new .Net
Visual Studio 2008 does a much better job of detecting and adding controls from
A Visual Studio 2008 project in one solution needs to reference a WCF service
I'm trying to open a silverlight project in Visual Studio 2008 and getting this
I have a class library project for .NET 3.5 built with Visual Studio 2008.
I have several projects that I just upgraded from Visual Studio 2003 and ASP.NET
I have a Visual Studio 2008 C# .NET 3.5 project where I accept a
I am using Visual Studio 2008(vb.net), SQL Server 2008 and Crystal Report 9. I

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.