[BUG] C# hot reload for markup not working MacOs

Aperta
#410 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
csharp

Direzione di ricerca

Inizia con la riproduzione MauiApp1 collegata e l'esempio HotReloadHandler copiato, quindi verifica l'output segnalato di dotnet watch con le versioni elencate di MacOS, .NET MAUI e toolkit. Il lavoro è completato quando è stato identificato e documentato o corretto il motivo per cui le modifiche al markup non vengono riflesse nelle esecuzioni descritte su Mac, iOS e Android, incluso l'errore GetRoute segnalato.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug unverified
Is there an existing issue for this?
  • I have searched the existing issues
Did you read the "Reporting a bug" section on Contributing file?
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
- .NET MAUI CommunityToolkit maui: 14
- .NET MAUI CommunityToolkit markup: 7
- OS: MacOs 26.2
- .NET MAUI: 10.0.1
Anything else?

No response

Lingua principale
C#
Stelle
597
Fork
39
Merge medio
9h 36m
PR unite (30g)
12

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di CommunityToolkit/Maui.Markup

Tutte le issue di CommunityToolkit/Maui.Markup

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.