Can someone please confirm to me that when my application is written in .NET 3.5 that this code
System.Environment.Version.Major.ToString()
will produce this
2.0.50727.1433
I'm just moving to 3.5 and the first application I'm moving is an internal website. I thought a really easy indicator that it's working would be to add the Framework version next to my Application version but the above text is what is being produced.
My limited research suggests that .NET 3.5 is a 'flavour' of 2.0 and so the underlying framework version will continue to be 2.0. The IIS application pool settings suggest this is the case.
Is this correct or can I get my application to show 3.5?
Cheers