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

  • Home
  • SEARCH
  • 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 7704281
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T23:39:01+00:00 2026-05-31T23:39:01+00:00

If i have a library which is compiled in .NET 4 and reference it

  • 0

If i have a library which is compiled in .NET 4 and reference it from a .net 4.5 executable which version of the framework will operations defined in the library execute against?

I have a cli app which is built in .net 4.5 and references both .net 4 and .net 4.5 projects and im wondering if both will use the same version of the ADO.net components.

  • 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-31T23:39:02+00:00Added an answer on May 31, 2026 at 11:39 pm

    They will both run in the same CLR (4.5 in this case).

    With .NET <=3.5, you could have cases where multiple versions of the same assembly will be loaded (so, it could happen that ADO.NET will load version 4.0 and also load 4.5 in the same app domain). As far as I know, they either eliminated that with CLR 4.0 (or at least made it happen way less).

    Edit: BTW – there’s a difference between the CLR (the runtime running your code) and the versions of the assemblies being loaded.

    The version of the CLR governs the capabilities of the process – what it can do, which versions of assemblies it can load. For example,, CLR 4.5 can load pretty much all assemblies (1.0 -> 4.5). They will all run under the 4.5 CLR. On top of that, you cannot run two versions of the CLR from the same compat band in the same process. CLR 4.5 and 4.0 both are considered the same compat band, so either one or the other will load. CLR 1.0, 1.1, 2.0, 3.0 and 3.5 are all considered in the same compat band, so only one of them can load. You can, however, load CLR 3.5 and CLR 4.5 at the same time.

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

Sidebar

Related Questions

I have an asynchronous library which is compiled under .NET 3.5, since it's used
Possible Duplicate: Determine framework (CLR) version of assembly I have a library/DLL file which
I have a class library project in .net say A which when built will
I have a problem in a VB.Net class library which I have simplified greatly
I'm curious. I have a library (static and dynamic version) compiled with visual studio
Say, I have mylibrary.ml which provides wrappings to library.c and I want to bytecode-compile
I have this library called BASS which is an audio library which I'm going
I have a library which has a basic class which is used extensively by
I have a C++ library which I deliver to other developers. One of them
I have a c-library which I use in gcc. The library has the extension

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.