ghell
03-07-2008, 12:57 AM
Is there any way to get the version of the .net runtime that is currently executing an executable? Environment.Version seems to just get the version of the compiler that compiled it. For example when compiling on 1.1 and then executing on 2.0 it returns 1.1.
I am trying to notify my users that they are running 1.1 and should upgrade to 2.0 before I actually migrate the applications to 2.0, but to do this I need to be able to detect when the 1.1 applications are being run under 1.1 not 2.0. This is all assuming that 1.1 applications actually get run by the 2.0 framework if it is installed (i.e. assuming that the 2.0 runtime can run 1.1 applications)
I am trying to notify my users that they are running 1.1 and should upgrade to 2.0 before I actually migrate the applications to 2.0, but to do this I need to be able to detect when the 1.1 applications are being run under 1.1 not 2.0. This is all assuming that 1.1 applications actually get run by the 2.0 framework if it is installed (i.e. assuming that the 2.0 runtime can run 1.1 applications)