5

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

I checked registry per MSDN and did find the expected entries under HKLM\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full:
HKLM\S\MS\NFS\NDP\4\Full

Additionally, under HKLM\SOFTWARE\Microsoft\.NETFramework\v4.0.30319\SKUs, there is an entry for 4.6.2, as well as others: HKLM\S\MS\NFX\4\SKUs\NFX462

I also checked the installer's log file to see if there were any issues, but nothing stood out. Towards the bottom, I see:

MSI (s) (AC:E0) [10:06:03:829]: Note: 1: 1707 
MSI (s) (AC:E0) [10:06:03:829]: Product: Microsoft .NET Framework 4.6.2 -- Installation completed successfully.

MSI (s) (AC:E0) [10:06:03:830]: Windows Installer installed the product. Product Name: Microsoft .NET Framework 4.6.2. Product Version: 4.6.01590. Product Language: 0. Manufacturer: Microsoft Corporation. Installation success or error status: 0.

MSI (s) (AC:E0) [10:06:03:830]: Value of RebootAction property is 
MSI (s) (AC:E0) [10:06:03:830]: Windows Installer requires a system restart. Product Name: Microsoft .NET Framework 4.6.2. Product Version: 4.6.01590. Product Language: 0. Manufacturer: Microsoft Corporation. Type of System Restart: 2. Reason for Restart: 1.

MSI (s) (AC:E0) [10:06:03:831]: Product: Microsoft .NET Framework 4.6.2. Restart required. The installation or update for the product required a restart for all changes to take effect.  The restart was deferred to a later time.

This is a Windows 7 Pro machine running Visual Studio 2017 Community Edition, and I am not logged in as a system administrator. Does anyone know how to make VS recognize this framework version as a valid target?


NOTE: I've already see this question. This appears to be a different issue.

  • You say you saw the other question but the instruction in the answer to that question (an d what' sin you link MSDN article) is not what you've done here. So far what you're showing here is perfectly normal and correct. You're supposed to be looking under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full branch, not under the v4.0 branch (note: v4, not v4.0). :) Also, which version of Visual Studio are you using? – Ƭᴇcʜιᴇ007 Sep 27 '17 at 16:54
  • What version of Visual Studio are you using? Update your question to include this information. Given the contents of the log you provided, have you restarted your system, if you have not performed a restart then you should do that before updating your question. – Ramhound Sep 27 '17 at 16:56
  • @Ƭᴇcʜιᴇ007 I read the other question, but not closely enough I suppose. It is there under v4 (I'll update the question shortly), but VS is still reporting it as not installed. VS Version=2017 – p.s.w.g Sep 27 '17 at 16:56
  • @Ramhound Updated question and provided missing information. I did restart the system after the install. – p.s.w.g Sep 27 '17 at 17:12
  • 1
8

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

  • The link I provided, Targeting .NET Platforms is page which lists all the different versions of the available developer packs. I already what was happening so I knew the solution off the top of my head. – Ramhound Sep 27 '17 at 17:33
0

This is easily resolved by installing the .NET Framework 4.6.2 Developer Pack from here. https://www.microsoft.com/net/targeting

Once installed you will see the desired version and you can use all those new C# 7 features, rock!

I am certain this will be included in an up and coming update, until, just manually install it.

Credits goes to BenjaminPerkins for finding this solution! https://blogs.msdn.microsoft.com/benjaminperkins/2017/03/23/net-framwork-4-6-2-not-in-visual-studio-2017/

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.