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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T21:11:35+00:00 2026-05-13T21:11:35+00:00

For some reason I’ve always had trouble remembering the backwards/forwards compatibility guarantees made by

  • 0

For some reason I’ve always had trouble remembering the backwards/forwards compatibility guarantees made by the framework, so I’d like to put that to bed forever.

Suppose I have two assemblies, A and B. A is older and references .NET 2.0 assemblies; B references .NET 3.5 assemblies. I have the source for A and B, Ax and Bx, respectively; they are written in C# at the 2.0 and 3.0 language levels. (That is, Ax uses no features that were introduced later than C# 2.0; likewise Bx uses no features that were introduced later than 3.0.)

I have two environments, C and D. C has the .NET 2.0 framework installed; D has the .NET 3.5 framework installed.

Now, which of the following can/can’t I do?

Running:

  1. run A on C? run A on D?
  2. run B on C? run C on D?

Compiling:

  1. compile Ax on C? compile Ax on D?
  2. compile Bx on C? compile Bx on D?

Rewriting:

  1. rewrite Ax to use features from the C# 3 language level, and compile it on D, while having it still work on C?
  2. rewrite Bx to use features from the C# 4 language level on another environment E that has .NET 4, while having it still work on D?’

Referencing from another assembly:

  1. reference B from A and have a client app on C use it?
  2. reference B from A and have a client app on D use it?
  3. reference A from B and have a client app on C use it?
  4. reference A from B and have a client app on D use it?

More importantly, what rules govern the truth or falsity of these hypothetical scenarios?

  • 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-13T21:11:35+00:00Added an answer on May 13, 2026 at 9:11 pm

    run A on C? run A on D?

    No problem here.

    run B on C? run C on D?

    You can’t run B on C because it references 3.5 assemblies which are not available on C. No problem to run C on D.

    compile Ax on C? compile Ax on D?

    No problem here.

    compile Bx on C? compile Bx on D?

    You can’t compile Bx on C because it doesn’t have the 3.5 assemblies installed which it references. No problem to compile Bx on D.

    rewrite Ax to use features from the C#
    3 language level, and compile it on D,
    while having it still work on C?

    Yes this is possible.

    rewrite Bx to use features from the C#
    4 language level on another
    environment E that has .NET 4, while
    having it still work on D?

    No this is not possible because if you target the CLR 4.0 the assembly won’t be able to run on a previous CLR version.

    As a conclusion:

    ildasm.exe yourassembly.dll. Double click on MANIFEST, look at Metadata version. If it is v2.0.50727 it means that this assembly has been compiled for the CLR 2 version. Then you look at the referenced assemblies. If in the references you see a referenced assembly called System.*** with version 3.5.0.0 it means that .NET 3.5 framework is required. If not it probably will run fine with only .NET 2.0 installed (of course it shouldn’t reference any other assembly that itself depends on .NET 3.5).

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

Sidebar

Related Questions

No related questions found

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.