CommunityToolkit / CommunityToolkit/Tooling-Windows-Submodule

Auto-format displayed XAML for sample source code

オープン
#83 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る
enhancement sample app 🖼
主要言語
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)

![image](https://user-images.githubusercontent.com/9384894/160197346-3fc43c6e-5150-42a0-9c4b-5ab5e2cef936.png)

# 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

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

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