A
Alex Chudnovsky
Hi all,
I am using release version of VS 2008 in projects targeting .NET 3.5,
however I just noticed that
System.Runtime.InteropServices.RuntimeEnvironment.GetSystemVersion()
returns old "2.0.50727" - indicating that the code runs under .NET 2.0.
..NET 3.5 installed just fine - I resorted to creation of brand new
console project targeting .NET 3.5, it uses System.Linq, and compiles
and runs just fine, the test code I use is as follows:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine(".NET runtime version: {0}",
System.Runtime.InteropServices.RuntimeEnvironment.GetSystemVersion());
Console.ReadLine();
}
}
}
There are no dependences on any old code in this example.
What's going on?!?! Can someone in the know confirm that this is
supposed to be the expected behavior (if so it is really really odd).
regards,
Alex
I am using release version of VS 2008 in projects targeting .NET 3.5,
however I just noticed that
System.Runtime.InteropServices.RuntimeEnvironment.GetSystemVersion()
returns old "2.0.50727" - indicating that the code runs under .NET 2.0.
..NET 3.5 installed just fine - I resorted to creation of brand new
console project targeting .NET 3.5, it uses System.Linq, and compiles
and runs just fine, the test code I use is as follows:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine(".NET runtime version: {0}",
System.Runtime.InteropServices.RuntimeEnvironment.GetSystemVersion());
Console.ReadLine();
}
}
}
There are no dependences on any old code in this example.
What's going on?!?! Can someone in the know confirm that this is
supposed to be the expected behavior (if so it is really really odd).
regards,
Alex