You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
TodoApp.Uno: UNO0008 EnableHotReload obsolete warning in App.xaml.cs #536
App.xaml.cs calls the now-obsolete WindowExtensions.EnableHotReload(Window) API, producing this warning on every head:
App.xaml.cs(57,9): warning UNO0008: 'WindowExtensions.EnableHotReload(Window)' is obsolete: 'Use the UseStudio() method instead if using the Uno.SDK, otherwise see https://aka.platform.uno/UNO0008 for more details.' (https://aka.platform.uno/UNO0008)
This warning already existed before #524's Uno Platform 5 -> 6 bump (confirmed locally on net10.0-desktop under both Uno.Sdk 5.6.54 and 6.5.36) - it's not new, just newly visible now that CI actually builds this sample end-to-end (see #524/#525/#526/#533).
Root cause
TodoApp.Uno.csproj already uses the Uno.Sdk style project (<Project Sdk="Uno.Sdk">), so per Uno's own guidance the EnableHotReload(Window) extension method call in App.xaml.cs should be replaced with the UseStudio() builder method instead.
Suggested fix
In App.xaml.cs, replace the EnableHotReload(...) call with .UseStudio() on the host/app builder chain, per https://aka.platform.uno/UNO0008. Low risk, purely a hot-reload developer-experience API swap with no runtime behavior change for a normal (non-hot-reload) build/run.
I’m unclaiming this one for now. I started validating a small fix locally, but this machine only has the .NET 9 SDK and the sample currently targets .NET 10 heads, so I can’t verify it properly here.
Activity
nightcityblade commentedon Jul 10, 2026
Hi, I'd like to work on this. I'll submit a PR shortly.
nightcityblade commentedon Jul 10, 2026
I’m unclaiming this one for now. I started validating a small fix locally, but this machine only has the .NET 9 SDK and the sample currently targets .NET 10 heads, so I can’t verify it properly here.