CommunityToolkit / CommunityToolkit/Tooling-Windows-Submodule

Auto-format displayed XAML for sample source code

Aperta
#83 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub
enhancement sample app 🖼
Lingua principale
C#
Stelle
55
Fork
19
Merge medio
40m
PR unite (30g)
1

Descrizione

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

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

No file, test, or entry point is named in the issue; start by locating the tooling step that bundles or emits sample source, especially the UWP release-mode XAML path. Done means the generated XAML for all samples uses a consistent formatter and no longer contains the problematic extra whitespace.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
csharp
Ambito
tooling
Tipo di issue
Funzionalità
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.