473,387 Members | 3,801 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Version Check of .NET Framework at runtime

Hi All

Can anybody help on version check of .NET Framework at runtime.

Thankyou verymuch in advance

Regards
Vighneswar
Apr 7 '06 #1
2 2546
There is surely better approach but this one works too. Get the version
of mscorlib or the framework version from mscorlib.dll path:

Dim asem As System.Reflection.Assembly
' get mscorlib assembly (it contains System.Object)
asem = System.Reflection.Assembly.GetAssembly(New System.Object().GetType)
MsgBox(asem.GetName.Version.ToString)
MsgBox(asem.Location)
--
Peter Macej
Helixoft - http://www.vbdocman.com
VBdocman - Automatic generator of technical documentation for VB, VB
..NET and ASP .NET code
Apr 7 '06 #2
Hello!

System.Version runtimeVersion = System.Environment.Version;

This will get for you version of running runtime.

Cheers

http://sourceforge.net/projects/ngmp

Apr 7 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: angelag | last post by:
I am currently taking a college course in Visual Basic.Net and I am a beginner. I bought Visual Studio.Net 2003 to do my homework at home. I built my first project and e-mailed it to myself at...
2
by: Terence Shek | last post by:
Is there a way to set the application binding policy so that it always binds to the latest version of an assembly? I'm hoping there is a way to avoid updating the application's binding...
2
by: jwexqm | last post by:
I'm using a COM DLL from a C# application via an interop wrapper generated by 'tlbimp.exe'. That all works fine, I can fire off methods and things happen as they should. My issue is that I want...
11
by: Z D | last post by:
Hello, If I have a .NET assembly, how do I determine what version of the .NET framework it.... 1) was compiled against 2) is supposed to use 3) is compatible with? Is there a utility that...
10
by: Al Smith | last post by:
Hi, Two developers installed 2005 beta on their machines along side .net 2003. Part of our web application then started behaving strangely, for them. We ran aspnet_regiis to force...
10
by: Mike Logan | last post by:
I am using the "contract first" design methodology. Contract First is design the WSDL first then design the server and client. However I must design my XSD/XML Schema before anything. I am...
2
by: vighnesh | last post by:
Hi All Can anybody help on version check of .NET Framework at runtime. Thankyou verymuch in advance Regards Vighneswar
4
by: =?Utf-8?B?bXVzb3NkZXY=?= | last post by:
Hi Is there a way to easily tell the version pf .NET a project is compiled using in Visual Studio? I have a solution with a few projects, but I have a feeling some of the projects are...
5
by: jroozee | last post by:
I am developing in VS '03. I have all of the current framework versions installed on my PC, 1.1, 2.0, and 3.0. How can I make sure the code I am developing in is using the 3.0 framework version?...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.