Hi!
I have an application that has v2.0 as .NET Target version. I noticed on Output window that VS uses compiler of .NET v3.5 to build the application. I also noticed that still v2.0 System assemblies are used. Here is part of the command line I see:
C:\Windows\Microsoft.NET\Framework\
v3.5\Csc.exe
/noconfig /nowarn:1701,1702 /errorreport:prompt /warn:4 /define:DEBUG;TRACE
/reference:C:\Windows\Microsoft.NET\Framework\
v2.0.50727\System.Data.dll
/reference:C:\Windows\Microsoft.NET\Framework\
v2.0.50727\System.dll
/reference:C:\Windows\Microsoft.NET\Framework\
v2.0.50727\System.Xml.dll
/debug+ /debug:full /optimize-
... ... ... ... ...
I come to the following conclusions. Please correct me if I'm wrong:
- The output assembly will require v2.0 of framework as prerequisite. v3.5 will not be used.
- Although I'm working with v.2.0 as target version, I can still use some of the new v3.5 compiler functionality, such as implicit typed variables (var) or automatic properties.
Dimitris Papadimitriou, Software Development Professional