Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support. This article teaches you how to check which versions of the. NET may have already been installed. If any command in this article fails, you don't have the runtime or SDK installed.
For more information, see the install articles for Windows , macOS , or Linux. You can see which versions of the. Open a terminal and run the following command. NET runtime are currently installed with the following command.
It's possible that. In this case, the commands from the previous sections may not work. As an alternative, you can check that the.
NET install folders exist. NET Framework updates are installed. You can use the xref:System. NET implementation and version your app is running on. If the app is running on. NET Framework, the output will be similar to:. By comparison, if the app is running on. NET Core or. 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 xref:Microsoft. 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. TIP] 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. Notice that the registry path to the. NET Framework 1. Open the subkey that matches the version you want to check. Often this is the first pinned icon in the taskbar. The Server Manager Dashboard appears. Under "Configure this local server," click Add roles and features.
The Add Roles and Features Wizard will launch. Select Role-based or feature-based installation and click Next. Click the radio button for Select a server from the server pool.
The local server is selected by default. Click Next. If ASP. NET that you wish to install. In the prompt that appears, click Add Features. Back in the wizard, click Next. On the "Select features" page, click Next. Confirm your installation selections are correct and click Install.
0コメント