views:

3604

answers:

4

Can I develop asp.net 3.5/2.0 projects using Visual Studio 2010? Or I will be stick on .Net Framework 4.0?

+12  A: 

From MSDN VS 2010

The multi-targeting feature of Visual Studio lets you specify the version of the .NET Framework, or its profile, that is required for your application. The key benefit of multi-targeting is that you can use the current version of Visual Studio to create and develop projects that target earlier versions of the .NET Framework. For example, you can continue to develop projects that were created in Visual Studio 2008 without adding new .NET Framework dependencies.

Gary.Ray
When you are using Unit Test projects, they will always be compiled to .NET 4.0 though.
Peter
True, but that is because you are using a framework 4.0 set of classes.
Gary.Ray
+3  A: 

Yes, you can develop 2.0 and 3.5 ASP .NET projects, and other many other types of projects with Visual Studio 2010. When we built the multi-targeting support, we were especially sensitive to web development, because it wouldn't be realistic to expect that users would upgrade their servers immediately. In many cases, this wouldn't even be possible.

Dustin Campbell
+11  A: 
Shoban
A: 

No, you can't. You can target framework versions, but the project/solution files are different. VS 2008 complains. This is MS not being developer friendly.

Wally McClure
Research should be done before providing such an answer.
Don