CommunityToolkit / CommunityToolkit/Tooling-Windows-Submodule

Auto-format displayed XAML for sample source code

Đang mở
#83 2 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

enhancement sample app 🖼
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)

![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.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. 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

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.