VB.net 2013 - Application Target Framework

If I have my application set in the Project Properties, how do I know it is really pointed to that frame work?

For example I've noticed that in .net 4.5 it puts a line in the Application Config to point to the 4.5 framework...but for 3.5 it doesn't seem to add that entry...so how do I know it is really pointed to that .net framework or do I just believe that it is because I selected it?

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

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.

Najam UddinCommented:
Right click on project to go to Properties, in Application tab, you have option to select Target framework. All framework installed on your machine will be there.
smithmrkAuthor Commented:
That wasn't really my question...If I select .Net Framework 3.5 how do I know my application is running 3.5 Framework?
ILDASM (accessible from the Visual Studio Command Prompt) is a wonderful tool:Capture.JPGCapture.JPGCapture.JPGUsing ILDASM, you can determine the targeted framework for an assembly:Targeted framework of .NET 4.5 shows references to v4.xTargeted framework of .NET 3.5 shows references to v2.xYou can also use a bit of reflection if you want to capture it in say a string:
Dim netVersion = System.Reflection.Assembly.GetAssembly(Me.GetType()).ImageRunTimeVersion

Open in new window


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
smithmrkAuthor Commented:
Great Thanks!

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.