dogsuf.blogg.se

Microsoft visual studio 2005 是哪个版本
Microsoft visual studio 2005 是哪个版本




String install = versionKey.GetValue("Install "," ").ToString()

microsoft visual studio 2005 是哪个版本

String sp = versionKey.GetValue("SP "," ").ToString() String name = (string)versionKey.GetValue("Version "," ") RegistryKey versionKey = ndpKey.OpenSubKey(versionKeyName) using (RegistryKey ndpKey = RegistryKey.OpenBaseKey(RegistryHive.LocalMachine,įoreach (string versionKeyName in ndpKey.GetSubKeyNames()) As an alternative, if you know the computers you will query are running. Private static void GetVersionFromRegistry ( ) Return"No 4.5 or later version detected " Private static string CheckFor45DotVersion(int releaseKey)

microsoft visual studio 2005 是哪个版本

the framework to ensure your app works the same. however you should always compile your code on newer versions of Checking the version using >= will enable forward compatibility, Int releaseKey = Convert.ToInt32(ndpKey.GetValue("Release ")) Ĭonsole.WriteLine("Version : " + CheckFor45DotVersion(releaseKey)) Private static void Get45or451FromRegistry ( )






Microsoft visual studio 2005 是哪个版本