1

I've got a stupid problem, which just couldn't get solved in any obvious way. The point is, that both my good old MSVS 2010 and latest MSVS 2012 "can't see" .NET Frameworks of version 4 or 4.5. These libraries are supposed to be automatically installed with the Visual Studio, so that it would use relevant C# (and not only) features any time.

But I've tried reinstalling the IDE several times - no, only 2,3 and 3.5 framework versions are available when trying to create a new project. Nor any externally created project for latest .NET versions can be opened. Reinstalling IDE on different hard drives, manual framework reinstalling and so on didn't bring success. IDE's are Ultimate Edition both.

I badly wish to solve the problem without attempting to reinstall my windows 7 home basic. Could anyone, please, give me some good piece of advice about it?

P.S. Almost similar problem

user1729849
  • 11
  • 1
  • 3
  • 2
    What kind of project are you creating? – Jon Skeet Oct 08 '12 at 20:07
  • 1
    Why don't you download the framework from the MS website and try manually installing them? – Sidharth Mudgal Oct 08 '12 at 20:11
  • 1
    No kinds of projects, which require 4 o 4.5 versions are available. Like latest ASP MVC's for web. Even a simple WPF application can't get targeted for the 4th FW. – user1729849 Oct 08 '12 at 21:13
  • The fact is that there is a similar question about somewhere here on stackoverflow, a guy there discovered, that his Studio started showing error like "Project targets different FW" and a had something like that before, but his solution doesn't help me - full reinstall and reset to defaults haven't helped yet. – user1729849 Oct 08 '12 at 21:20
  • I've tried to download and install FW manually, had to remove it from programs first, but it didn't help. MSVS "doesn't see" it(( P.S. Sorry for multi-commenting, haven't got used to the UI yet. [HERE](http://stackoverflow.com/questions/4636618/visual-studio-2010-error-project-target-framework-not-installed-when-opening) - what i found here, didn't help. – user1729849 Oct 08 '12 at 21:27
  • Do you have any extensions installed? It sounds like you've done a lot of things to fix the problem, and it may be that your system is now horribly corrupted from all the things you've tried. – Erik Funkenbusch Oct 08 '12 at 22:11

1 Answers1

0

Try to install the .NET 4 Multitargeting Pack:

Multi-Targeting Pack for Microsoft .NET Framework 4.0.2 (KB2544526)

Multi-Targeting Pack for Microsoft .NET Framework 4.0.3 (KB2600213)

petr k.
  • 8,040
  • 7
  • 41
  • 52
  • Also see this: http://stackoverflow.com/questions/3078164/dotnet-framework-4-missing-from-visual-studio-2010 – petr k. Oct 08 '12 at 22:11