• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 104
  • Last Modified:

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?

Mark
0
smithmrk
Asked:
smithmrk
  • 2
1 Solution
 
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.
0
 
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?
0
 
it_saigeDeveloperCommented:
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

-saige-
0
 
smithmrkAuthor Commented:
Great Thanks!

Mark
0
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.

Join & Write a Comment

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now