how to get the version of the dot net installed?

  • Thread starter Thread starter assaf
  • Start date Start date
A

assaf

hi all

is there any way
i can programmatically get the dot
net version installed?


assaf
 
hi CT.

i see.

however, this article describes a way
to find the .net version through
accessing the registry.

i, on the other hand,
need to find out the
dot net version,
without accessing the registry.
my app must run from the web,
so it cannot access the registry.

isn't there a less intrusive way
to find the .net version?


assaf
 
Hello Assaf,

How about HttpContext.Current.Request.Browser.ClrVersion?
 
great.

however,
now i need the same,
only from a winapp.

can it be done?


assaf
 
Hello Assaf,

Assuming Carsten's solution didnt work for you, you could always try System.Environment.Version...
 
tnx

actually both solutions are great.
and the web solution is my choice.


assaf
 

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