From kagents
.NET MAUI Hot Reload — C# hot reload, XAML hot reload, Blazor Hybrid hot reload, dotnet watch, MetadataUpdateHandler, hot reload limitations and workarounds. USE FOR: troubleshooting hot reload failures, configuring dotnet watch for MAUI, understanding C# Hot Reload limitations. DO NOT USE FOR: general MAUI development (use maui-patterns) or build errors (use dotnet-build-diagnosis).
npx claudepluginhub grexyloco/k.agents --plugin kagentsThis skill uses the workspace's default tool permissions.
Basiert auf: [davidortinau/maui-skills](https://github.com/davidortinau/maui-skills) (MIT, David Ortinau, Microsoft)
Guides Next.js Cache Components and Partial Prerendering (PPR): 'use cache' directives, cacheLife(), cacheTag(), revalidateTag() for caching, invalidation, static/dynamic optimization. Auto-activates on cacheComponents: true.
Guides building MCP servers enabling LLMs to interact with external services via tools. Covers best practices, TypeScript/Node (MCP SDK), Python (FastMCP).
Share bugs, ideas, or general feedback.
Basiert auf: davidortinau/maui-skills (MIT, David Ortinau, Microsoft)
| Typ | Was | Funktioniert bei |
|---|---|---|
| XAML Hot Reload | UI-Markup-Änderungen | Layout, Styles, Bindings |
| C# Hot Reload | Code-Änderungen | Methoden-Bodies, Lambdas, lokale Variablen |
| Blazor Hybrid | Razor/CSS | Blazor-Komponenten in MAUI |
dotnet watch statt dotnet run verwendenFunktioniert nicht bei:
Funktioniert bei:
# Mit Hot Reload starten
dotnet watch --project MyMauiApp
# Hot Reload Debug-Ausgabe aktivieren
DOTNET_WATCH_DEBUG=1
# MetadataUpdate Logging
DOTNET_MODIFIABLE_ASSEMBLIES=debug
[assembly: MetadataUpdateHandler(typeof(HotReloadHandler))]
internal static class HotReloadHandler
{
internal static void ClearCache(Type[]? updatedTypes) { }
internal static void UpdateApplication(Type[]? updatedTypes)
{
// UI nach Hot Reload aktualisieren
MainThread.BeginInvokeOnMainThread(() =>
{
// Page neu laden oder State refreshen
});
}
}