CommunityToolkit / CommunityToolkit/Tooling-Windows-Submodule
Auto-format displayed XAML for sample source code
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- C#
- Star
- 56
- Fork
- 19
- Merge trung bình
- 40 phút
- Pull request đã merge (30 ngày)
- 1
Mô tả
# 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.
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
Issue không nêu tên file, test hay entry point nào; hãy bắt đầu bằng việc xác định bước tooling đóng gói hoặc xuất sample source, đặc biệt là đường dẫn XAML UWP release-mode. Công việc được xem là hoàn tất khi XAML được tạo cho tất cả các sample sử dụng một formatter nhất quán và không còn chứa khoảng trắng thừa có vấn đề.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- csharp
- Lĩnh vực
- tooling
- Loại issue
- Tính năng
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 35/100