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

Abierto
#410 1 comentario 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
35/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
csharp

Línea de trabajo

Comienza con la reproducción MauiApp1 vinculada y el ejemplo copiado de HotReloadHandler, y después comprueba la salida notificada de dotnet watch con las versiones indicadas de MacOS, .NET MAUI y toolkit. Se considera completado cuando se haya identificado y documentado o corregido por qué los cambios de marcado no se reflejan en las ejecuciones descritas para Mac, iOS y Android, incluido el error GetRoute notificado.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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

Lenguaje dominante
C#
Estrellas
596
Forks
39
Merge medio
9 h 36 min
PR fusionados (30 d)
12

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de CommunityToolkit/Maui.Markup

Todos los issues de CommunityToolkit/Maui.Markup

Issues similares

Más issues de C#

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.