Customize .NET Runtime Missing Error Message

160 views Asked by At

I have a WPF application that needs .NET 6 Desktop Runtime installed on user's device. And I use TFM to use Windows SDK like

<TargetFramework>net6.0-windows10.0.19041.0</TargetFramework>

However, when I don't have .net 6 desktop runtime installed, I got this message without showing the specific runtime information(.NET 6 Desktop Runtime). enter image description here

Is there any method to customize the initialization error message to let users know which framework they need? My requirement is similar with this question 11 years ago and hope there's an answer now : How to customize ".NET FrameworkInitialization Error"?

0

There are 0 answers