Skip to main content

How to Confirm Which .NET Runtime an Application Requires

This article explains how to identify the specific .NET runtime version required by an application on a Windows Server. This information is essential for ensuring compatibility when configuring Internet Information Services (IIS) or managing...

This article explains how to identify the specific .NET runtime version required by an application on a Windows Server. This information is essential for ensuring compatibility when configuring Internet Information Services (IIS) or managing application pools.

Before you begin

You will need:

  • Administrator access to the Windows Server.

  • Access to the application's source code or project files (if available).

  • The name of the specific application or service you are investigating.

Identifying the required .NET runtime

Depending on the type of application you are hosting, there are different ways to determine the required .1NET runtime.

For .NET Framework applications

Most legacy Windows applications and many ASP.NET websites run on the .NET Framework.

  1. Locate the application's project file (e.g., web.config or a .csproj file).

  2. Open the file in a text editor.

  3. Look for the <targetFramework> tag.

  4. Identify the version number listed within that tag.

Example: <targetFramework="4.7.2" /> indicates the application requires .NET Framework 4.7.2.

For .NET (Core) applications

Modern applications, including those built on .NET Core or .NET 5/6/7/8+, may require the .NET Runtime or the .NET Core Hosting Bundle.

  1. Locate the application's configuration file (e.g., appsettings.json or web.config).

  2. Check for the runtime or framework specifications in the configuration.

  3. If the application is a standalone executable, you can use the dotnet --info command in the command prompt to see which runtimes are currently installed on the server.

  4. Check the application's documentation or the developer's repository to confirm the minimum required version.

Confirm the result

  • For .NET Framework: The version number in the web.config should match the version installed on the server (e.g., 4.8).

  • For .NET (Core): The dotnet --info command should list the specific version (e.g., .NET 6.0.x) as an installed runtime.

Limitations

This article does not cover identifying requirements for third-party software where the source code or configuration files are not accessible. In those cases, you must consult the software vendor's documentation to determine the required .NET version.

Did this answer your question?