Please note that the solution below applies to the .NET 4.0 platform and TargetFrameworkAttribueis new to 4.0.
: Client Framework, - . ildasm.exe, , TargetFrameworkAttribute. , :
using System;
using System.Linq;
using System.Runtime.Versioning;
class Program
{
static void Main(string[] args)
{
var a = System.Reflection.Assembly.GetExecutingAssembly();
var att = a.GetCustomAttributes(false).OfType<TargetFrameworkAttribute>().Single();
Console.WriteLine(att.FrameworkDisplayName);
Console.Read();
}
}
: , , " .NET Framework 3.5" ( ildasm ). , , , , .
I , . , - ( , , 15% , " ", 41 , 48 ). .