FerranB
FerranB

Reputation: 36807

It's possible to develop for .net 2.x in Visual Studio 2008?

It's possible to develop only for .net 2.0 running Visual Studio 2008?

Thanks!

Upvotes: 1

Views: 191

Answers (4)

Jon Skeet
Jon Skeet

Reputation: 1500595

Yes, by setting the project property - but be aware that you're really targeting .NET 2.0 SP1 (which is required for .NET 3.5, effectively).

That means if you start using DateTimeOffset (introduced in .NET 2.0SP1) the compiler will think everything is fine and dandy - but if you deploy the app on a vanilla .NET 2.0 box, it won't work.

Upvotes: 7

Dave Markle
Dave Markle

Reputation: 97691

Go to the Properties page of your project and click the "Application" tab. Under "Target Framework", you should be able to set the version you want to build for.

Note that the cool thing about VS 2008 is that even if you target to 2.0, you can still use some new language features in C# like "var", etc, even though you aren't using 3.5!

Upvotes: 0

Joe Ratzer
Joe Ratzer

Reputation: 18549

Check out this article - http://weblogs.asp.net/scottgu/archive/2007/06/20/vs-2008-multi-targeting-support.aspx

You might be able to ditch 2005 now...

I still use 2.0 projects in VS 2008 on a weekly basis and it works perfectly.

Upvotes: 9

Maurice
Maurice

Reputation: 27632

Yes, VS2008 supports multi targeting. Check the project properties where you can select the target framweork.

Upvotes: 0

Related Questions