المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Somewhat embarrassed: how do I get the dotnet framework?



C# Programming
12-08-2012, 05:50 PM
Guys,

Create a console application. Select the project name in the solution explorer and Alt-Enter or right-click the properties and select the Application tab. Change the Target Framework to say 3.5 or something else other than 2.0. Paste this line into the Main method:

Console.WriteLine("Version=" + Assembly.GetExecutingAssembly().ImageRuntimeVersion);

and run it. I was sort of expecting to see it display the target framework I selected. Instead it displays v.2.0.50727 even though my target framework was set to 3.5. Obviously, I've misunderstood that line of code. Does anyone know what I can do to get the target version I selected? I don't want to do anything as a result of getting it so I just want to display it.http://www.barakasoft.com/script/Forums/Images/smiley_redface.gif
<div class="signature">"I do not have to forgive my enemies, I have had them all shot." — Ram