473,324 Members | 2,581 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,324 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 2968
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: Joe Reazor | last post by:
I just upgraded to v1.1 of the framework and VS.Net 2003. I opened up one of my solutions and rebuilt my project and all went well. I then ran my project in debug mode. My program runs up fine,...
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: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.