How to Find C#.net Version
Can anyone told me how to find which C#.net Version i am using in my application ?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Manish Kumar ChoudharyPosted Nov 19, 2014, 5:27 AM
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
VulpesPosted Nov 19, 2014, 5:46 AM
http://msdn.microsoft.com/en-us/library/system.environment.version(v=vs.110).aspx
Yadagiri ReddyPosted Nov 19, 2014, 5:35 AM
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.