Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to target .NET 2.0 in Visual Studio 2010

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?

like image 370
zildjohn01 Avatar asked May 22 '10 13:05

zildjohn01


People also ask

What is the .NET framework for Visual Studio 2010?

The functionality of Visual Studio 2010, . NET Framework 4 and Silverlight 4 creates a powerful and unique combination, opening up new opportunities for developers to build applications that take advantage of new and existing devices, as well as emerging platforms like cloud services.”


2 Answers

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.

like image 69
Dustin Campbell Avatar answered Sep 23 '22 17:09

Dustin Campbell


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.

like image 34
Hans Passant Avatar answered Sep 23 '22 17:09

Hans Passant