?? 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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top