After installing Visual Studio 2010 (multiple times), the IDE refuses to detect .NET framework 4.0 (it shows 3.5 and below only). I have confirmed that the framework and the multi-targeting pack are, in fact, installed.
I've tried repairing the VS install, but to no avail— it tells me that it the install has failed because it didn't attempt to install the multi-targeting pack.
Any help would be appreciated as this has been a thorn in my side for about half a week now.
Edit: I am running Windows 8.1

- 317
- 5
- 16
-
Did you also install SP1? – Tieson T. May 31 '14 at 01:45
-
I won't say it's a duplicate, but have you seen [this post](http://stackoverflow.com/q/12788639/1043380)? – gunr2171 May 31 '14 at 01:48
-
What OS are you running VS under? – Mark Hall May 31 '14 at 01:51
-
1There are more suggestions here: http://stackoverflow.com/q/3078164/534109 – Tieson T. May 31 '14 at 01:53
-
Yeah, I've installed the multi-targeting pack. I'm running on win8.1, would that have any impact? – HotelCalifornia May 31 '14 at 01:56
-
Also, this is a fresh install, so I haven't moved drives. I doubt there're any registry corruptions, but I'll check. Last time I came across that post, I tried the verification tool, which seemed to return positive for every version of .NET I checked. – HotelCalifornia May 31 '14 at 01:59
-
I won't guarantee that Win8 is the problem, but I have had some issues running VS2010 and VS2012 on Win8 and Win8.1 – Leon Newswanger May 31 '14 at 01:59
-
If you use the WebPI to install SP1, it should detect dependencies you're missing, if any. Haven't tried installing 2010 on 8.1, though. I would suggest editing your question to note the OS you're using. – Tieson T. May 31 '14 at 02:05
-
It hadn't occurred to me that my install didn't come with SP1, so I'm installing that now, we'll see if it fixes things. – HotelCalifornia May 31 '14 at 02:09
-
@HotelCalifornia because you need to have the latest Visual Studio Service pack to run on Windows 8 – Mark Hall May 31 '14 at 02:23
-
@MarkHall is that a general service pack for all forms of VS? Or is it specific to VS2010 (i.e. VS2010 SP1)? – HotelCalifornia May 31 '14 at 02:25
-
@HotelCalifornia Specific to VS2010. – Mark Hall May 31 '14 at 02:27
-
@MarkHall yeah, downloading/installing that now (^^) – HotelCalifornia May 31 '14 at 02:28
-
@HotelCalifornia Also see this GDR Release for VS2010 http://support.microsoft.com/kb/2736182/en-us – Mark Hall May 31 '14 at 02:34
-
After installing SP1 and the Windows 8 GDR for VS2010, the problem persists – HotelCalifornia May 31 '14 at 03:18
-
are you installing .net framework 4.5 or 4.0? .. as I find in this wiki is that vs2010 only suports 4.0 but not 4.5, and the screenshot you showed mentions that you are installing 4.5 not 4.0 (even though the dlls are the same, have you tried only 4.0). http://en.wikipedia.org/wiki/Microsoft_Visual_Studio why don't you use 2012 or 2013 version? – brainless coder May 31 '14 at 06:30
-
2To the people voting to close because Visual studio isn't a tool used primarily for programming, if it isn't I don't know what is. – Mark Hall May 31 '14 at 12:06
-
@Mahmud I'm using VS2010 becuase of its compatibility with XNA, which a friend and I are using for a project. – HotelCalifornia May 31 '14 at 18:31
-
2@MarkHall If Visual Studio isn't used for programming, I've been doing something wrong all these years. – Leon Newswanger Jun 01 '14 at 18:00
1 Answers
Did you install the .net v4 redistributable package or the development package? Try this link: http://go.microsoft.com/?linkid=9831986
Edit:
There are 2 more things you could try:
1) This solution from http://social.msdn.microsoft.com/Forums/vstudio/en-US/3dede142-82ce-430c-bbe6-d824f0fb94a4/visual-studio-does-not-detect-net-framework-4?forum=netfxsetup
Downloading and starting "Windows Phone Developer Tools" ... after the first installation process is finished (.net4 Multi-Targeting...) i stopped the installation process and then restarted VS2010 and ... it found the .net4 Framework. (Yes, i tried to uninstall/reinstall all frameworks and vs2010 several times, but nothing else worked here. Win7/64bit)
2) Create a new user account and test it with that.

- 72
- 4
-
-
I'd forgotten: I already have the WP dev tools (for 7.0, 7.1, and 8.0) – HotelCalifornia May 31 '14 at 21:54
-
Finally, after trying to repair from another account, I get the same error as I did initially: http://puu.sh/99AoV/c7ad18870b.png – HotelCalifornia May 31 '14 at 22:43
-
-
That would not be fun.. I might just have to stick with writing code in Sublime Text and putting on our repo. – HotelCalifornia Jun 01 '14 at 14:58
-
So my only solution aside from reinstalling windows is to convince my partner to use monogame instead of xna. Thanks for all the answers! – HotelCalifornia Jun 01 '14 at 18:08