When desktop runtime isn't installed, is there a method to customize the error message without using an installer? #6338
Unanswered
xinding1121
asked this question in
Q&A
Replies: 2 comments 1 reply
-
As i understand, this dialog is shown from the dotnet/runtime codebase, not from wpf side. It will be better to ask this question in @dotnet/runtime repo. |
Beta Was this translation helpful? Give feedback.
1 reply
-
@xinding1121 See https://github.com/dotnet-campus/dotnetCampus.AppHost/ The Chinese blog: https://blog.walterlv.com/post/share-self-deployed-dotnet-runtime-among-multiple-exes and you can use Google Translate to translate it to your native language <PropertyGroup>
<AppHostCoreLibMissingDialogMessage>To run this application, you need to xxxxx</AppHostCoreLibMissingDialogMessage>
<AppHostCoreLibMissingDialogUrl>The url which will be navigated when yes button clicked</AppHostCoreLibMissingDialogUrl>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="dotnetCampus.AppHost" Version="1.0.0-alpha04" />
</ItemGroup> |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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 due to OS versions perhaps.
We have demos like:
The last one is what we expect. Is there any method to customize the message and always show the specific runtime information? Any advice or redirection will be appreciated.
Beta Was this translation helpful? Give feedback.
All reactions