0

enter image description here

In my visual studio 2010, target framework only include (2.0, 3.0 and 3.5).
Does not include for 4.0.
So, may I know how can I add dot net 4.0 to show in target framework.
I already install dot net version 4 in my pc. But doesn't show in target framework.
Please advice me.

Kingston
  • 549
  • 1
  • 8
  • 21
  • You might want to try some solutions available on [this](https://stackoverflow.com/q/12390175/465053) SO thread. – RBT Nov 16 '17 at 05:31
  • 1
    Thanks for your suggestion @RBT. I think it is not ok with my case coz I want to try to use dot net 4 in 2010. – Kingston Nov 16 '17 at 05:38

1 Answers1

1

Visual studio checks this folder for .net assembly references

C:\Program Files\Reference Assemblies\Microsoft\Framework\xxx

If that folder is missing 4.0 for you, installing a new version of visual studio may create that folder for you. You could also try copying that folder from a different machine.

If that doesn't work, try the answers suggested here:

dotnet Framework 4 missing from visual studio 2010

EDIT: Source for the first suggestion - http://www.anujvarma.com/visual-studio-does-not-display-4-0-or-4-5-framework-option-for-target-framework/

RBT
  • 24,161
  • 21
  • 159
  • 240
Andrew
  • 107
  • 10