Does anybody have a generic way of detecting the .net framework version? I have scoured the forums and it seems like the only way to really detect it is to look at the registry under "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP"
and then look for a specific folder to indicate the version number. Look for the one you want and see if it's there. Kinda seems REALLY DUMB of microsoft to not just have a registry key entry that indicates the highest version of .net framework
so a person could just go to one folder and look at the version number.
Another little quirk is that the information up until 4.0 was found directly under the foldder named for the version. You could check 'Version'. However, as of .Net 4.0, you need to open a Client or Full folder under V4 and then check the contents
of those folders for a variable called 'Version'.. Seems like they could be a bit more consisten, but hey, if they were, our jobs would be easy and anybody could do it :-) Job security !! We love you Microsoft !! :-)
I'm sure there is some good reason for this, but that reason eludes me. Does anybody have any useful information on detecting version numbers for .net framework other than the 'search the registry for random folders that change structure in 4.0'
method ? I woul
View Complete Post