Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2013-01-26
4
Medium Priority
?
478 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 2000 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
After several hours of googling I could not gather any information on this topic. There are several ways of controlling the USB port connected to any storage device. The best example of that is by changing the registry value of "HKEY_LOCAL_MACHINE\S…
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…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…

715 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