Visual Studio doesn't recognize .NET Framework 4.6.2 is installed

I've installed .NET Framework 4.6.2 via the web installer, and everything looked good. However, after I restarted and opened up Visual Studio, it reported that 4.6.2 was not installed: enter image description here

You need to download and install the .NET Framework 4.6.2 Developer Pack, which includes the .NET 4.6.2 Targeting Pack, after doing so you will be able to target that specific version of the .NET Framework

Source: Targeting .NET Platforms


(A solution was already provided by @Ramhound but i want to give a more detailed explanation.)

First, (already answered but still important) NDP means .NET Developer Pack. You need the Developer Pack, not just the Runtime.

I had the same problem even after i installed the .NET Developer Pack 4.6.2 named NDP462-DevPack-KB3151934-DEU.exe from here which redirects to here, i still got the same error message Project Target Framework Not Installed when opening a foreign solution from Github.

Notice the DEU suffix in the installer's filename. It's just the language pack for german (deutsch) which has a significant smaller file size. That's the problem. Quote from the download page: You need to install the .NET Framework 4.6.2 Developer Pack prior to installing language packs. But here it becomes kinda cynical, there is no link to that download on this page. The Developer Pack links are linked to the language packs and the Runtime links are linked to some web-installers.

Solution: Thx to @Ramhound i found the full english .NET Developer Pack 4.6.2 NDP462-DevPack-KB3151934-ENU.exe here. After installing this pack, my Visual Studio Community 2017 found the target 4.6.2 correctly.

Update:

One part of the problem is that there are different redirects based on the browsers language setting. Browsers which have another language than english as a default setting are redirected to the language pack.

Test: Clicking on the link found on this page in Firefox with about:config / int.accept_languages set to

de-DE, de redirect to NDP462-DevPack-KB3151934-DEU.exe but

en-US, en redirect to NDP462-DevPack-KB3151934-ENU.exe

Another part of the problem is that the download link and the downloaded filename are named Developer Pack even though it's just the language pack.