The framework 'Microsoft.NETCore.App', version '8.0.0' (x64) was not found. You must install or update .NET to run this application
The machine doesn’t have the .NET runtime version the app was built for (framework-dependent deployment).
You must install or update .NET to run this applicationThe framework 'Microsoft.NETCore.App', versionwas not foundMicrosoft.AspNetCore.App was not found Meaning
Framework-dependent apps need the exact major runtime (and ASP.NET Core runtime for web apps). Install it, roll forward, or publish self-contained.
Common causes
- Runtime not installed (or only SDK of another version)
- ASP.NET Core runtime missing (Microsoft.AspNetCore.App)
- Architecture mismatch (x86 vs x64)
- Docker base image with older runtime
⚡ Quick fix
- Install the runtime/Hosting Bundle for that version
- Publish self-contained (--self-contained -r linux-x64)
- Use the matching Docker base image (mcr.microsoft.com/dotnet/aspnet:8.0)
Detailed fix by platform
Shell
- csharp
dotnet --list-runtimes dotnet publish -c Release -r linux-x64 --self-contained true
How to diagnose
- Installed — dotnet --list-runtimes
- Required — runtimeconfig.json
- Arch — x64/x86/arm64
🔧 Still not fixed?
Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:
Similar errors
Most viewed in .NET
- Unable to cast object of type System.InvalidCastException: Unable to cast object of type 'X' to type 'Y'
- NullReferenceException System.NullReferenceException: Object reference not set to an instance of an object
- Cannot access a disposed context instance ObjectDisposedException: Cannot access a disposed context instance
Other ways to find it
Where this error sits
Origin: Application & API. Errors that are often confused with or caused by this one (click to open):
🧠 Still stuck? Analyze your error
Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.
💬 What worked for others
No tips yet — did something else fix this for you?
Share what worked for you
Tips are checked by an editor before they appear. Links are removed.
Report a correction or suggest an improvement
Last updated 13 Oct 2026