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

オープン
#410 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
csharp

調査の方向性

リンクされている MauiApp1 の再現手順とコピーされた HotReloadHandler の例から始め、次に、記載されている MacOS、.NET MAUI、toolkit のバージョンで報告された dotnet watch の出力を確認します。説明されている Mac、iOS、Android での実行においてマークアップの変更が反映されない理由を特定して記録するか修正し、報告されている GetRoute エラーも含めれば完了です。

索引モデルが issue の本文から書いたものです。

説明

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

主要言語
C#
スター
596
フォーク
39
平均マージ
9時間 36分
マージ済み PR(30日)
12

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

CommunityToolkit/Maui.Markup のほかの issue

CommunityToolkit/Maui.Markup の issue をすべて見る

似ている issue

C# の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。