Solved

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

Posted on 2013-01-26
4
466 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

Certified OpenStack Administrator Course

We just refreshed our COA course based on the Newton exam.  With 14 labs, this course goes over the different OpenStack services that are part of the certification: Dashboard, Identity Service, Image Service, Networking, Compute, Object Storage, Block Storage, and Orchestration.

Question has a verified solution.

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

What my article will show is if you ever had to do processing to a listbox without being able to just select all the items in it. My software Visual Studio 2008 crystal report v11 My issue was I wanted to add crystal report to a form and show…
A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in an application. Themes can be made up of a set of elements: skins, style sheets, images, and o…
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…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…

623 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