VB.net 2013 - Target Framework

This seems simple, but I can't figure it out!

I have some labels on my program that show the Author, Version, etc.
I want to display the Target Framework that was set in the Project Properties on a label but I can figure it out?

Similar to this:
lbl_Version.Text = "Version: " & My.Application.Info.Version.Major.ToString & "." & My.Application.Info.Version.Minor.ToString & "." & My.Application.Info.Version.Build.ToString & "." & My.Application.Info.Version.MinorRevision

Thanks,
Mark
smithmrkAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

David Johnson, CD, MVPOwnerCommented:
I tried System.Environment.Version and System.Runtime.InteropServices.RuntimeEnvironment.GetSystemVersion
but it only returns the .net clr version
0
smithmrkAuthor Commented:
Returns the what?
What is clr version?

Mark
0
David Johnson, CD, MVPOwnerCommented:
common language runtime (clr)  i.e. compile for version 3.5x or lower you get 2.0.50727.8009
and  v2.0.50727 and for version 4.0 and higher .NET framework version: 4.0.30319.34209
.NET framework version2= v4.0.30319
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Cloud Class® Course: Certified Penetration Testing

This CPTE Certified Penetration Testing Engineer course covers everything you need to know about becoming a Certified Penetration Testing Engineer. Career Path: Professional roles include Ethical Hackers, Security Consultants, System Administrators, and Chief Security Officers.

smithmrkAuthor Commented:
That works for me!
Why would they call it 3.5 when it is really 2.0.50727.8009?  Confusing!!!

Thanks,
Mark
0
käµfm³d 👽Commented:
Because .NET 3.x is an extension of the 2.0 Framework. It simply added on to the base Framework, it did not change it the way that 4.x did.
0
smithmrkAuthor Commented:
OK, thanks!
Still learning...
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.