Background
Attempting to run the third-party utility, that I installed earlier.
Lineage
- .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
- Error Message
- 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:
- Information
- Application
- App:- C:\Users\dadeniji\.dotnet\tools\demo1.exe
- Architecture:- x64
- Framework:- ‘Microsoft.NETCore.App’, version ‘6.0.0’ (x64)
- The following frameworks were found:-
- 8.0.4 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
- Missing Framework
- Application
Remediation
Outline
- Artifact
- Identify Artifact
- Download Artifact
- Install Artifact
- 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
- Operating System
- Windows
- Linux
- macOS
- Run Environment
- Console Apps
- Desktop Apps
- Server Apps
- WebServer
- ASP.Net Core Hosting Bundle
- .Net Runtime
- ASP.Net Core Runtime
- ASP.Net Core Hosting Bundle
- WebServer
Download Artifact
Preread through the product’s literature and noticed that it renders its output as:-
- Console
GUIWeb
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
- 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
- Home > Download > .NET > 6.0 Runtime
- Runtime
- .Net