CommunityToolkit / CommunityToolkit/Maui.Markup
[BUG] C# hot reload for markup not working MacOs
- Dominant language
- C#
- Stars
- 595
- Forks
- 40
- Avg merge
- 10h 33m
- Merged PRs (30d)
- 12
Description
### Is there an existing issue for this?
- [x] I have searched the existing issues
### Did you read the "Reporting a bug" section on Contributing file?
- [x] I have read the "Reporting a bug" section on Contributing file: https://github.com/CommunityToolkit/Maui/blob/main/CONTRIBUTING.md#reporting-a-bug
### Current Behavior
I tried following the community toolkit c# markup hot reload page.
But on MacOs i can't get it working for Mac, Ios or android.
Also the example HotReloadHandler has an error on the line: var currentPageShellRoute = AppShell.GetRoute(type);
I don't know what i should use instead.
When i do try running the project nothing changes.
And when using dotnet watch it immediately says: Exited
I use Rider and VsCode, but with both i can't get it working.
### Expected Behavior
See changes in the frontend that you made in code.
For example changing text, or the color of something.
### Steps To Reproduce
1. Create default MAUI app
2. install the community toolkit nugets for markup and maui
3. add the nugets to the builder, like .UseCommunityToolkitMarkup()
4. Delete the xaml files, just keep MainPage.cs
5. Create a simple hello world markup
6. copy paste the example handler
7. make changes to the UI code
8. try hot reload
### Link to public reproduction project repository
https://github.com/kayverhaegh/MauiApp1
### Environment
```markdown
- .NET MAUI CommunityToolkit maui: 14
- .NET MAUI CommunityToolkit markup: 7
- OS: MacOs 26.2
- .NET MAUI: 10.0.1
```
### Anything else?
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.