Link to home
Start Free TrialLog in
Avatar of Lawrence Avery
Lawrence AveryFlag for United States of America

asked on

Compiling with .NET Frameworks

When I compile a dll with a specific .NET Framework like 2.0, that dll will only use .NET Framework 2.0 correct?  The main project cannot override it with the main project's .NET Framework  specific version of say 3.0?

In other words what specific .NET Framework version you compile the dll with is what it has to have to run?
Avatar of kaufmed
Flag of United States of America image

What are you concerned about? You target a Framework version, but later Framework version do have the ability to reference DLLs created which target  earlier Frameworks. In actuality, 2.0 is the foundational Framework, and the later Frameworks are extensions of that base.
Avatar of Lawrence Avery


I know each version of the .NET Framework is backward compatible. What I am saying is when you compile with a specific version of .NET Framework, the end result is that the assemble is locked into accessing that specific version until you recompile specifying another version of .NET Framework. There is no fallback dynamically to another version of .NET Framework if someone removes the .NET Framework you specified when you compiled initially -correct?
Avatar of Jacques Bourgeois (James Burger)
Jacques Bourgeois (James Burger)
Flag of Canada image

Link to home
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial