Solved

Migration from (.NET 2.0, 3.0 or 3.5) to .NET 4.0

Posted on 2013-01-26
4
464 Views
Last Modified: 2013-01-27
I know CLRs change from version 2.0.50727 to v4.0. Can  CLR 4.0 run a DLL that was created using .NET Framework 2.0, 3.0 or 3.5? Or does tha DLL have to be recompiled using .NET Framework 4.0 or greater in order for CLR 4.0 to run the DLL.
0
Comment
Question by:metro156
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 4

Accepted Solution

by:
mcmahon_s earned 500 total points
ID: 38823463
0
 

Author Comment

by:metro156
ID: 38823543
can a CLR 2.0.50727 application execute while referencing a .NET 4.0 DLL ?
Because I thought assemblies using .NET 4.0 or higher have a different format for its PE Header.?????? Therefore will not execute.
0
 
LVL 4

Expert Comment

by:mcmahon_s
ID: 38824135
If you mean can you add a reference to a .NET 4 dll in your .net 2 project, then no. I personally haven't tried it but you could force your .net 2 application to run under .net 4 using the <supportedRuntime> version in your config which would then allow the .net 4 dll to be loaded via reflection.
0
 

Author Comment

by:metro156
ID: 38824143
Thank you
0

Featured Post

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Web page design problem 3 42
Check only one toolstripmenu item 12 63
SSIS Column mapping 5 42
Difference between Highcharts and Mapbox 10 46
In my previous article (http://www.experts-exchange.com/Programming/Languages/.NET/.NET_Framework_3.x/A_4362-Serialization-in-NET-1.html) we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

710 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question