Unexpected error message shows when WPF runs without the required .NET runtime installed

Xin Ding 1 Reputation point Microsoft Employee
2022-04-12T15:37:47.457+00:00

I have a WPF that needs .NET 6 Desktop Runtime installed on user's device. When the required runtime is missing, the error alert dialog not always shows the specific runtime information which I expect to be '.NET Desktop Runtime 6'. Behaviors vary on different devices that we've tried.

We found that in Windows 11, the specific runtime information(.NET Desktop Runtime 6.0.3(x64)) is shown, as the 3rd screenshot below while in Windows 10 there isn't. I've got some insights about the performance of .net runtime from our colleague in .NET platform team but still want to know if there's something related to the OS.

We have some cases about the error messages like:

  1. only show .net is needed:
    192396-image.png
  2. shows that it needs .net core but is misguiding. Actually we need .net 6 desktop runtime:
    192347-image.png
  3. shows the correct runtime we need and it's what we expect:
    192385-image.png

Why the behaviors vary on different devices? Any advice or redirection will be appreciated.

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,617 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,119 questions
Windows 10 Compatibility
Windows 10 Compatibility
Windows 10: A Microsoft operating system that runs on personal computers and tablets.Compatibility: The extent to which hardware or software adheres to an accepted standard.
455 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,162 questions
0 comments No comments
{count} votes