Version Check of .NET Framework at runtime

  • Thread starter Thread starter vighnesh
  • Start date Start date
V

vighnesh

Hi All

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

Thankyou verymuch in advance

Regards
Vighneswar
 
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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top