CommunityToolkit / CommunityToolkit/Tooling-Windows-Submodule
Auto-format displayed XAML for sample source code
- 主要言語
- C#
- スター
- 55
- フォーク
- 19
- 平均マージ
- 40分
- マージ済み PR(30日)
- 1
説明
# Problem
Source code for each sample is bundled into the final app output. This step is done manually, with one exception: UWP in release mode.
Under release mode, UWP already emits the XAML source files, but these files are slightly different than the original, with extra whitespace and an added `x:ConnectionId`.
The whitespace is especially problematic, as it breaks formatting and makes the XAML hard to read.
See this example: (click to expand)

# Solution
Rather than spending the time trying to custom emit these files to a different location, we can simply use a XAML formatter to fix the whitespace issue while unifying the formatting for all samples.
コントリビューションガイド
調査の方向性
Issue にはファイル、テスト、エントリポイントが記載されていないため、まずサンプルソースをバンドルまたは出力する tooling のステップ、特に UWP release-mode XAML パスを探します。完了の条件は、すべてのサンプルで生成される XAML が一貫した formatter を使用し、問題のある余分な空白を含まなくなることです。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- csharp
- 領域
- tooling
- issue の種類
- 機能追加
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100