'Execute .NET5.0 Console Application with .NET6.0 Runtime

Can a machine which has only .NET6.0 runtimes installed run an executable which was targeted at .NET5.0?

dotnet --list-runtimes for the machine:

Microsoft.AspNetCore.App 6.0.5 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 6.0.5 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 6.0.5 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

I have not found any documentation about .NET backwards compatibility after .NET Core and .NET Framework and since I am on a laptop from work I cannot uninstall .NET5.0 runtimes and try it myself...



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source