Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

.NET Framework 4.6 or a later update is already installed on this computer

I am trying to load a Visual Studio solution with .NET v4.6 projects in VS2013, but it tells me that I do not have this installed on my computer.

enter image description here

Which makes sense. So I tried to download and install this, from here.
However, as soon as I fire up the installer, iT says: enter image description here.

So now I'm stuck, because I can't load the project because I need to install something I can't install.

Any ideas as to how to fix this?

like image 754
Yellow Avatar asked Feb 22 '16 12:02

Yellow


People also ask

How do you check if .NET 4.6 is installed?

Use Registry Editor In the Registry Editor, open the following subkey: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full. If the Full subkey isn't present, then you don't have .NET Framework 4.5 or later installed.


2 Answers

To develop for .NET 4.6 in Visual Studio 2013 you need to install the targetting pack for 4.6.

The .NET 4.6 you've got installed is enough to run the programs, but it is not enough for development.

So follow the advice of the dialog, download the targetting pack.

Note that what you said you tried to download and install, that wouldn't, was the normal runtime, and as you already know you have this installed. If you select the download option in the dialog it should open the right website, otherwise you should just open this page here (courtesy of @HansPassant in a comment):

Microsoft .NET Framework 4.6.1 Developer Pack and Language Packs for Windows 7 SP1, Windows 8, Windows 8.1, Windows 10, Windows Server 2008 R2 SP1, Windows Server 2012 and Windows Server 2012 R2

like image 70
Lasse V. Karlsen Avatar answered Sep 18 '22 16:09

Lasse V. Karlsen


Installing the developer pack version fixed this for me: https://www.microsoft.com/en-us/download/details.aspx?id=53321

like image 31
Ajay Kotnala Avatar answered Sep 20 '22 16:09

Ajay Kotnala