When necessary runtime isn't installed, is there a method to make the error message show specific runtime info without using an installer? #67427
Replies: 4 comments 12 replies
-
Very recently we've made improvements to this area: |
Beta Was this translation helpful? Give feedback.
-
Sorry - I think I misunderstood. The difference between the two dialogs is that the one without detailed information is presented if there is no .NET installed on the machine (has nothing to do with .NET Framework, it means there's no .NET 5, 6... ). This is because the code which can actually extract the information which version the app needs actually lives in the installed runtime. The app alone without the runtime only knows that it needs A runtime - and a so called "host version", which typically maps to the runtime version, but it may not. The second (better) dialog is produced if there already is .NET runtime on the machine. The above PRs tried to improve these as much as possible, but there is still some difference due to the layering of capabilities described above. |
Beta Was this translation helpful? Give feedback.
-
Thanks @xinding1121 for the trace logs. There are basically 3 cases, each with slightly different error message:
The second scenario (FDD single-file) is currently failing with error message containing ".NET Core" string, which is wrong. |
Beta Was this translation helpful? Give feedback.
-
I have a WPF application that needs .NET 6 Desktop Runtime installed on user's device. When the desktop runtime is missing, the error alert dialog not always shows the specific runtime information which I expect to be '.NET Desktop Runtime 6'. Seems that behaviors vary on different devices. I'm not sure if it's about the OS version.
We have some cases like:
Why the behaviors vary on different devices? Is there any method to make the message always show the specific runtime information? Any advice or redirection will be appreciated.
Beta Was this translation helpful? Give feedback.
All reactions