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 for business Windows Client for IT Pros Devices and deployment Set up, install, or upgrade
Developer technologies .NET .NET Runtime
Windows for business Windows Client for IT Pros User experience Other
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.