1

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:

  • LINQ
  • Extension Methods
  • Lambdas

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.

Community
  • 1
  • 1
Brett Veenstra
  • 47,674
  • 18
  • 70
  • 86

4 Answers4

3

How to Use .NET 3.5 Features and C# 3.0 Syntax in .NET 2.0?

Also, at Stackoverflow: C# .NET 3.0/3.5 features in 2.0 using Visual Studio 2008

Community
  • 1
  • 1
Moayad Mardini
  • 7,271
  • 5
  • 41
  • 58
0

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

Daniel A. White
  • 187,200
  • 47
  • 362
  • 445
0

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.

Community
  • 1
  • 1
user200783
  • 13,722
  • 12
  • 69
  • 135
-2

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

Fusspawn
  • 1,405
  • 12
  • 19