CommunityToolkit / CommunityToolkit/Tooling-Windows-Submodule
Auto-format displayed XAML for sample source code
- Lenguaje dominante
- C#
- Estrellas
- 55
- Forks
- 19
- Merge medio
- 40 min
- PR fusionados (30 d)
- 1
Descripción
# 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.
Guía de contribución
Línea de trabajo
El issue no nombra ningún archivo, prueba ni punto de entrada; empieza por localizar el paso de tooling que empaqueta o emite el código fuente de ejemplo, especialmente la ruta XAML de UWP release-mode. Se considera terminado cuando el XAML generado para todos los ejemplos usa un formateador coherente y ya no contiene los espacios en blanco adicionales problemáticos.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- csharp
- Área
- tooling
- Tipo de issue
- Nueva funcionalidad
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 35/100