Brett Veenstra
Brett Veenstra

Reputation: 48454

How to use .NET 3.x features in .NET 2.0 (Visual Studio 2008)

You're stuck with targeting .NET 2.0 in Visual Studio 2008, but you'd like to use all the latest goodness from .NET 3.x features, like:

What can one do to enable this awesomeness?

EDIT: I had not originally found the post: C# .NET 3.0/3.5 features in 2.0 using Visual Studio 2008. Go there for an answer.

Upvotes: 1

Views: 138

Answers (4)

user200783
user200783

Reputation: 14348

Extension methods and lambda expressions, at least, are available when targeting .NET 2.0 - see C# .NET 3.0/3.5 features in 2.0 using Visual Studio 2008.

Upvotes: 0

Fusspawn
Fusspawn

Reputation: 1405

Convince your employer to update and allow you to target 3.5. Other than that your out of luck i think,

Upvotes: -2

Daniel A. White
Daniel A. White

Reputation: 190907

.NET 3.x features are built upon 2.0. Have you tried adding System.Core as a reference?

Upvotes: 0

Related Questions