Jalil,
The Version property on the Environment class is correct. It returns
the version of the CLR (according to the documentation) NOT the framework.
The CLR for .NET 3.0 and .NET 3.5 is the same CLR from .NET 2.0.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"Jalil" <Ja***@discussions.microsoft.comwrote in message
news:83**********************************@microsof t.com...
>
I am using VS2008 and made sure I am using Framwork 3.5 using instructions
I
just received in this group. I read somewhere that you can get the version
you are using with the following code:
Console.WriteLine(".Net Framework Version
{0}",Environment.Version.ToString());
I did that and I get version 2!! I have 3.5 installed. Should I ignore
this?
I have already set the framework to 3.5 in the properties of the project.
Thanks,
-Jalil