?? Environment.Version Reports Wrong Value ??

  • Thread starter Thread starter Tom Baxter
  • Start date Start date
T

Tom Baxter

Hello all,

I have .NET 3.5 installed and I'm running VS 2008. I have a C# project
that's configured to use .NET 3.5 (in the project properties the "Target
Framework" is 3.5).

The following line of code:
Console.WriteLine(".NET Version: {0}", Environment.Version);
prints: .NET Version: 2.0.50727.1433

Why does Environment.Version not indicate 3.5?

Thanks
 
Hello Tom,

the Environment.Version is correct, because it contains the version of the
CLR, which hasn't changed with .NET 3.5. .NET 3.5 just adds a bunch of new
assemblies.

Kind regards,
Henning Krause
 
Terrific. Thanks for the reply.

--
Tom Baxter



Henning Krause said:
Hello Tom,

the Environment.Version is correct, because it contains the version of the
CLR, which hasn't changed with .NET 3.5. .NET 3.5 just adds a bunch of new
assemblies.

Kind regards,
Henning Krause
 
Back
Top