Closed freever closed 1 year ago
Hi, thanks for your interest. Yes, hot-reload for a Windows application is supported but I know it could be cumbersome. First, the simple mode can't work as is because it can't build xaml so it has trouble with the App.xaml file under the platform folder.
The full-mode option should work most of the time, but sometimes it's unable to read the pdb file because it's locked (without an apparent reason) by Visual Studio. This should happen if you debug the application and hot-reload it simultaneously (try removing the bin & obj folder and restart visual studio).
The third option is to use the build-in dotnet hot-reload function but unfortunately, it still lacks support for many kind of edits. This is the builtin-hot-reload in action with a Windows app:
To sum up:
1) Use MauiReactor hot-reload BUT without debugging the app (this should prevent VS to lock the pdb file) 2) Use the dotnet built-in hot-reload for small modifications
Please let me know if you find anything I can fix using MauiReactor full-mode hot reload
@adospace
Thanks for the feedback - yes, I can confirm that options 1 and 2 both work, with their respective pros and cons. The built-in one is really quick but limited.
I'll re-open this if I find any more issues.
Hi @adospace
This is an awesome library, thanks for putting it out there!
Is hot reload supposed to work for windows apps? I have tested dotnet-maui-reactor for Android in normal and full mode and both work as expected, but when I run under windows I get errors.
Under normal mode:
Under full mode it sometimes works but mostly gets stuck on this:
If windows is not supported, that's fine, but if it is then let me know if you need any further info.
Apart from the dotnet-maui-reactor tool, Is there anything specific required to get "normal" maui hotreload to work?
Thanks again