The easy part:
Targeting the .NET 2.0 framework in a Visual Studio 2010 project using the dropdown.
The hard part:
Is it possible to target a specific syntax version - for example var s = "hello world"
is valid syntactic sugar in VS2008 and above, but would not compile in VS2005. Can VS2010 be configured to flag this at compile time?
This can be done by specifying the language version in the project settings. To set the language version to C# 2.0 do the following
Here are the other selections and their meanings in Visual Studio 2010.