CommunityToolkit / CommunityToolkit/Tooling-Windows-Submodule
Auto-format displayed XAML for sample source code
- Langage dominant
- C#
- Étoiles
- 55
- Forks
- 19
- Merge moyen
- 40 min
- PR mergées (30 j)
- 1
Description
# 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.
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
L’issue ne nomme aucun fichier, test ni point d’entrée ; commencez par localiser l’étape de tooling qui regroupe ou émet le code source d’exemple, en particulier le chemin XAML UWP release-mode. C’est terminé lorsque le XAML généré pour tous les exemples utilise un formateur cohérent et ne contient plus les espaces blancs supplémentaires problématiques.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- csharp
- Domaine
- tooling
- Type d'issue
- Fonctionnalité
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 35/100