Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Will .NET Framework 4 replace all its previous versions?

Tags:

.net

When Installing .NET Framework 4 in the near future, I would like to know if this product will replace all the previous .net frameworks that I have installed (i.e. 1.1, 2.0, 3, 3.5).

If yes, could I uninstall all of them?

like image 754
vizcayno Avatar asked Apr 07 '10 12:04

vizcayno


People also ask

Is .NET framework 4.0 still supported?

Support for . NET Framework 4 on Windows Server 2003 SP2 ended on July 14, 2015, and support on all other operating systems ended on January 12, 2016.

Should I remove old versions of .NET Framework?

it's not necessary to remove old version.as jeff said, all the programs use different versions, and old programs will continue using the old version, and new will use new, so it's up to you what to remove or not to remove.

Is .NET 4.5 Obsolete?

. NET Framework 4.5. 2, 4.6, and 4.6. 1 will be reaching end of support on April 26, 2022 and after this date we will no longer provide updates including security fixes or technical support for these versions.

Do I need all versions of Microsoft .NET Framework?

It is mostly backwards compatible so it is possible to get your old applications to work on it. Whether you need any of them or not depends on what you're running. Most applications out there are still built for . NET 2 to 3.5 so installing 3.5 will cover you for that.


2 Answers

According to my own experience, in the following way you should proceed:

To run .NET applications made with versions 1.0 and 1.1 you need to have installed only the latest higher 1.x library build made by Microsoft (Microsoft .NET Framework 1.1 and SP1 Update Package).

To run .NET applications made with versions 2.0, 3.0 and 3.5 you need to have installed only the latest higher 3.x library build made by Microsoft (Microsoft .NET Framework 3.5 SP1).

To run .NET applications made with versions 4.0, 4.5, 4.5.1 and 4.5.2 you need to have installed only the latest higher 4.x library build made by Microsoft (Microsoft .NET Framework 4.5.2, currently the latest library build for any 4.x).

So, currently, you need to install in your system only these 3 packages (Microsoft .NET Framework 1.1, Microsoft .NET Framework 3.5 SP1 and Microsoft .NET Framework 4.5.2) in your system to get all current and old versions of .NET Frameworks and you can run any .NET application, and is not necessary install other separated package builds such as Microsoft .NET Framework 2.0, 3.0, 4.0, etc, because already are included in the packages mentioned above.

like image 22
user8067 Avatar answered Sep 19 '22 18:09

user8067


No, they can exist alongside eachother. Just like with previous versions. In fact, 4.0 uses completely different directories to store its assemblies in.

Uninstalling will prevent you from using older programs. It is however possible to run 2.0+ software using the 4.0 runtime, with some extra configuration in the application config file. This is not guaranteed to work however, because there are some subtle changes that might break some (arguably badly coded) software.

Update: There is an additional attribute that affects this (useLegacyV2RuntimeActivationPolicy), although I'm not entirely certain what it does. It was taken from a presentation by Bart de Smet, which I didn't have access to at the time of the original posting:

<!-- Compiled for 2.0; run against 4.0 -->
<configuration>
  <startup useLegacyV2RuntimeActivationPolicy=“true”>
    <supportedRuntime version=“v2.0.50727”/>
    <supportedRuntime version=“v4.0”/>
  </startup>
</configuration>
like image 165
Thorarin Avatar answered Sep 20 '22 18:09

Thorarin