How to Find C#.net Version
Can anyone told me how to find which C#.net Version i am using in my application ?
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Manish Kumar ChoudharyRank #339 · 7.4K reputationPosted Nov 19, 2014, 12:27 AM EST
Hi venkat kumar,
To get version of framework - look at version of one of main Assemblies i.e.
Console.Write(typeof(string).Assembly.ImageRuntimeVersion);
If you are using command line compiler (csc.exe) you can check help to see version (also you'd need to know Framework version anyway:
C:\Windows\Microsoft.NET\Framework\v4.0.30319>csc /?
Microsoft (R) Visual C# 2010 Compiler version 4.0.30319.1
VulpesRank #55 · 29.2K reputationPosted Nov 19, 2014, 12:46 AM EST
http://msdn.microsoft.com/en-us/library/system.environment.version(v=vs.110).aspx
Yadagiri ReddyRank #773 · 3K reputationPosted Nov 19, 2014, 12:35 AM EST
2) Goto References section in solution explorer.
3) Expand the references section.
4) You will find Microsoft.CSharp reference file.
5) Right click on that file and go to properties.
6) in the properties window the bottom one is CSharp version of your application.