Solved

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

Posted on 2013-01-26
4
459 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
  • 2
  • 2
4 Comments
 
LVL 4

Accepted Solution

by:
mcmahon_s earned 500 total points
Comment Utility
0
 

Author Comment

by:metro156
Comment Utility
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
Comment Utility
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
Comment Utility
Thank you
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

For a while now I'v been searching for a circular progress control, much like the one you get when first starting your Silverlight application. I found a couple that were written in WPF and there were a few written in Silverlight, but all appeared o…
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
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…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

743 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now