Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

dotnet Framework 4 missing from visual studio 2010

I just installed visual studio 2010 but when i create a new project Framework 4 does not appear in the options for target framework. I know framework 4 installed correctly because the new app pools set to v4 were created in IIS. For some reason it's just not showing up in visual studio. I tried repairing dotnet 4 and reinstalling visual studio but still no luck. Anyone else have this problem or know how to fix it?

like image 836
sagescrub Avatar asked Jun 20 '10 03:06

sagescrub


3 Answers

First of all you shoul use the .NET Framework Setup Verification Tool to check the .NET 4 have been properly installed.

I also recommend you to check the both products language, sometimes it could be the problem.

If everything is ok, i guess you have registry problem, so you would have to check the installation keys or use .NET uninstall tools.

More info:

Detection keys for .NET Framework 4.0 and Visual Studio 2010

Uninstall .NET Framework Tool

Visual Studio does not detect .NET Framework 4

Hope helps!

like image 199
Morvader Avatar answered Oct 24 '22 02:10

Morvader


I had the same problem and it turned out to be that I needed the Microsoft .NET Framework 4 Multi-Targeting Pack. No other combination of actions would fix this.

like image 31
skaz Avatar answered Oct 24 '22 03:10

skaz


I tried all the ways but no success, According to this link,you can solve this problem by copy frameworklist.xml file from another computer and paste it in your system.

I had the same problem and I resolved it. I found out that there were no file FrameworkList.xml in folder C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\RedistList. But I noticed this file in machine where .Net Framework 4 is accessible from VS 2010. Then I copied this file to my computer and restarted VS 2010. And .Net Framework 4 appeared from drop down list.

I attached frameworklist.xml file from my system :Download frameworklist.xml

like image 21
Arash Avatar answered Oct 24 '22 02:10

Arash