.net – application – usage – error message – “‘You must install or update .NET to run this application.”

Background

Attempting to run the third-party utility, that I installed earlier.

Lineage

  1. .net – install – error message – “‘dotnet’ is not recognized as an internal or external command, operable program or batch file”
    Date Posted:- 2024-April-22nd
    Link

Error

Error Message – “You must install or update .NET to run this application”

Image

Textual


>demo1.exe 
You must install or update .NET to run this application.

App: C:\Users\dadeniji\.dotnet\tools\demo1.exe
Architecture: x64
Framework: 'Microsoft.NETCore.App', version '6.0.0' (x64)
.NET location: C:\Program Files\dotnet\

The following frameworks were found:
  8.0.4 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]

Learn more:
https://aka.ms/dotnet/app-launch-failed

To install missing framework, download:
https://aka.ms/dotnet-core-applaunch?framework=Microsoft.NETCore.App&framework_version=6.0.0&arch=x64&rid=win-x64&os=win10

Explanation

  1. Error Message
  2. Information

 

Remediation

Outline

  1. Artifact
    • Identify Artifact
    • Download Artifact
    • Install Artifact
  2. Console
    • Initiate a new Console Session

Artifact

Identify Artifact

Thankfully, the error message is very specific.

The error message directed us to a specific URL.

The URL to go to is https://aka.ms/dotnet-core-applaunch?framework=Microsoft.NETCore.App&framework_version=6.0.0&arch=x64&rid=win-x64&os=win10 ( link ).

Availed Artifacts

Image

Tabulated
  1. Operating System
    • Windows
    • Linux
    • macOS
  2. Run Environment
    • Console Apps
    • Desktop Apps
    • Server Apps
      • WebServer
        • ASP.Net Core Hosting Bundle
          • .Net Runtime
          • ASP.Net Core Runtime

Download Artifact

Preread through the product’s literature and noticed that it renders its output as:-

  1. Console
  2. GUI
  3. Web

Based on the fact that the output form factor is a console, choose the console runtime.

 

Install Artifact

Please install the downloaded artifact.

Images

Image – Installation

Image – Installation – Welcome

 

Image – Setup Progress

Image – Setup Progress – 01

 

Image – Setup Completed

Image – Setup Completed – 01

 

Console

Launch New Console Session

Successfully, ran the application.

 

References

  1. Microsoft
    • .Net
      • Runtime
        • Home > Download > .NET > 6.0 Runtime
          Download .NET 6.0 Runtime
          The runtime includes everything you need to run existing .NET and ASP.NET Core applications
          Link

Leave a comment