Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to Install .net 4.7 version on my machine when .net 4.8 is already installed?

I have the following .net versions on my machine. I started working on a .net project which's targetframework is 4.7. When I tried to install .net 4.7, I got this error ".NET Framework 4.7 or a later update is already installed on this computer."

Is it possible to Install .net 4.7 version on my machine when .net 4.8 is already installed ?

PSChildName                      Version        Release
-----------                      -------        -------
v2.0.50727                       2.0.50727.4927
v3.0                             3.0.30729.4926
Windows Communication Foundation 3.0.4506.4926
Windows Presentation Foundation  3.0.6920.4902
v3.5                             3.5.30729.4926
Client                           4.8.03761      528049
Full                             4.8.03761      528049
Client                           4.0.0.0
like image 492
marvelTracker Avatar asked Jul 03 '19 05:07

marvelTracker


People also ask

What version of the NET Framework do I need to upgrade?

If you created your app using an earlier version of.NET Framework, you can generally upgrade it to.NET Framework 4.5 and its point releases (4.5.1 and 4.5.2),.NET Framework 4.6 and its point releases (4.6.1 and 4.6.2),.NET Framework 4.7 and its point releases (4.7.1 and 4.7.2), or.NET Framework 4.8 easily. Open your project in Visual Studio.

What is the Microsoft NET Framework 4 7 offline package?

The Microsoft .NET Framework 4.7 is a highly compatible and in-place update to the Microsoft .NET Framework 4, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, and 4.6.2. The offline package can be used in situations in which the web installer cannot be used because of lack of Internet connectivity.

Do I have to install the previous versions of the framework?

In other words, if you install a later version, such as the .NET Framework 4.7, you do not first have to install the previous versions, Similarly, if you install a later version, such as the .NET Framework 4.6, you do not first have to uninstall the previous versions, such as the .NET Framework 4.5, 4.5.1, or 4.0.

What is the release key for NET Framework 4?

In the following figure, for example, the value of the Release entry is 461814, which is the release key for .NET Framework 4.7.2. If your release value is same as me, you don’t have to install any extra .net. Please feel free to let me know if it unblocks you.


1 Answers

If I am guessing correctly you need a Developer Pack for .NET 4.7.

The SDK/Developer Pack and the Runtime are not the same.

Know that a machine could be able to run applications that target a given .NET version but not build for it, if it has a compatible Runtime but not the particular SDK (software development kit).


Using Visual Studio Installer, you should be able to add the development tools:

Visual Studio Installer

See Install the .NET Framework for developers.

You can also get the SDKs/Developer Packs at Download .NET SDKs for Visual Studio.


Did you try installing the Developer Pack for .NET 4.7? Does that solve the problem? I think you only did try to install the .NET 4.7 Runtime, not the Developer Pack.

As per installing the Runtime , as you have found out, the installer won't let you. If you really need the old Runtime※ you would have to uninstall the newer version and the install then old one.

※: Which is unlikely, given that the Runtimes up to .NET 4.8 keep backwards compatibility to .NET 4.5. See Version compatibility in the .NET Framework before you decide going on uninstalling.

like image 92
Theraot Avatar answered Sep 30 '22 08:09

Theraot