views:

213

answers:

3

What steps are needed to target previous versions of the .NET framework in Visual Studio 2010? I installed VS and the .NET 2.0 SDK (from here), but only .NET 4.0 is in the list of available frameworks.

Screenshot

Any ideas what I'm missing?

+5  A: 

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
This worked, thanks. I downloaded 3.5 SP1 instead of plain old 3.5.
zildjohn01
A: 

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.

Doobi
This feature works just fine with express editions.
n535
+1  A: 

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, the download is here. Pick one that's appropriate for your language.

Hans Passant