Environment class, as in the following C code snippet. If you compile this program with the. At the command prompt type the following. Running the tool with no options displays all installed CLR versions.
Office Office Exchange Server. Not an IT pro? United States English. Post an article. Subscribe to Article RSS. Click Sign In to add the tip, solution, correction or comment that will help other users. Report inappropriate content using these instructions. How To Determine the. NET implementation and version your app is running on. If the app is running on. NET Framework, the output will be similar to:. The version of. If the Full subkey is missing, then.
NET Framework installed. To determine whether a minimum version of. For example, if your application runs under. From the Start menu, choose Run , enter regedit , and then select OK. If the Full subkey isn't present, then you don't have. If it exists, then you have. Its value corresponds to a particular version of. In the following figure, for example, the value of the Release entry is , which is the release key for.
The following examples check the value of the Release entry to determine whether. This code returns True if it's installed and False otherwise. Use the RegistryKey. OpenBaseKey and RegistryKey. If the app you're running is bit and running in bit Windows, the registry paths will be different than previously listed. For example, the registry subkey for. To be forward-compatible, check for a value greater than or equal to the value listed in the.
NET Framework version table. The following example checks the value of the Release entry in the registry to find the versions of. Add the directive using Microsoft. Win32 or Imports Microsoft. Win32 at the top of your code file if you haven't already done so. Each version of. NET Framework from 1. The following table lists the path to each.
NET Framework version. NET Framework 3. Open the subkey that matches the version you want to check. Use the table in the Detect. NET Framework 1. The following figure shows the subkey and its Version value for.
Use the Microsoft. NET Framework and service packs section below, and check the value for the related. NET Framework. To detect the existence of a specific. NET Framework version regardless of the service pack level, or to detect a service pack level or a later service pack level of the same.
NET Framework version, use the registry information that is listed in the following table. How to: Determine which. NET Framework versions are installed. Benefits of the Microsoft. Windows registry information for advanced users.
0コメント