Before, I was using VS 2008 command prompt and when I do
clrver
I got
Versions installed on the machine:
v1.1.4322
v2.0.50727
Now with Visual Studio 2010 command prompt I get :
Versions installed on the machine:
v1.1.4322
v2.0.50727
v4.0.30319
I want to know if there is a way to compile my C# code with the VS 2010 command line using the Framework 2.0 and not 4.0
— Edit —
Is there another way than going in the properties of the project?
Use MSBuild command line and pass the
ToolsVersion(2.0,3.0,3.5,4.0) andTargetFrameworkVersion(v2.0,v3.0,v3.5,v4.0) properties:The UI option is described here.