CommunityToolkit / CommunityToolkit/Tooling-Windows-Submodule

Auto-format displayed XAML for sample source code

Offen
#83 2 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
enhancement sample app 🖼
Vorherrschende Sprache
C#
Sterne
55
Forks
19
Ø Merge
40 Min.
Gemergte PRs (30 T.)
1

Beschreibung

# 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.

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.