5

What steps are needed to target previous versions of the .NET framework in Visual Studio 2010?

I installed Visual Studio and the .NET 2.0 SDK (from here), but only .NET 4.0 is in the list of available frameworks.

Screenshot

What am I missing?

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
zildjohn01
  • 11,339
  • 6
  • 52
  • 58

3 Answers3

9

Download and install .NET Framework 3.5. .NET Framework 3.5 includes 2.0, 3.0 and 3.5, though it is not included with Visual Studio 2010.

Dustin Campbell
  • 9,747
  • 2
  • 31
  • 32
2

The .NET 2.0 SDK doesn't actually include the .NET 2.0 framework. It is merely a collection of tools and header files; they are nowadays included with the Windows SDK. You've already got that in the C:\Program Files\Microsoft SDKs directory.

You'll need to download and install an earlier version of .NET. Using 3.5 SP1 is the best choice, and the download is here. Pick one that's appropriate for your language.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
Hans Passant
  • 922,412
  • 146
  • 1,693
  • 2,536
0

Which version of Visual Studio are you using?

I would suspect something like that would occur with an Express edition.

I use Premium and 2.0 is definitely there.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
Doobi
  • 4,844
  • 1
  • 22
  • 17