devhome icon indicating copy to clipboard operation
devhome copied to clipboard

Widgets don't work if .NET 8 runtime is not installed

Open whiskhub opened this issue 1 year ago • 0 comments

Dev Home version

0.1601.561.0

Windows build number

10.0.26257.0

Other software

No response

Steps to reproduce the bug

  • Install Dev Home
  • Have a system without global .NET 8 runtime installed (uninstall and reboot if installed already)
  • Open Windows Widgets view
  • Click "+ Add widget"
  • Choose any "Dev Home" widget (e.g. GPU widget) and click "+ Add widget"

Expected result

Widget is added to the view and fully usable (e.g. shows GPU information)

Actual result

The widget is not added to the view at all because the view freezes, or if it is added it is not working or interactive. image

After installing the .NET 8 runtime, the widgets start to work immediately.

The reason is that Dev Home is a self contained .NET 8 app, that seems to use CsWinRT authored components for the widgets. But these are framework dependant and require a global .NET runtime being installed.

The bug/"feature request" at CsWinRT is open since a long time without any fix being in sight. Would be great if you could help push this internally, as this is a big pain point for users of many WinAppSDK apps - as it's very hard to detect or debug. And rarely happens for .NET developers as they have the .NET SDK installed. https://github.com/microsoft/CsWinRT/issues/1141

Included System Information

No response

Included Extensions Information

No response

whiskhub avatar Aug 04 '24 16:08 whiskhub