Visual Studio – .NET Framework 4.0 Targeting Pack Not Showing

visual studio 2012windows 8

How can I install the .NET 4.0 Framework on Windows 8 Pro / Visual Studio 2012 Professional?

I get this:

enter image description here

and if I follow the link of Install other frameworks... I get into Microsoft page where I find this information:

enter image description here

I have then installed .NET Framework 4.0.1 Targeting Pack and .NET Framework 4.0.2 Targeting Pack as I can't install 4.0.3, restarted the machine over an over, but Visual Studio continues not to show the framework on the dropdown menu.

What am I doing wrong?

Here is what regedit says what I have installed on my machine:

enter image description here

Best Answer

I had this same thing after uninstalling VS2015 community, my VS2010 projects all started blowing up with this. My issue was I was missing FrameworkList.xml from C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework.NETFramework\v4.0\RedistList. I copied from another machine and the problem went away.