[file-diet] Refactor TestingPlatformEntryPointTask.cs (739 lines) into focused files
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 72/100
- Loại issue
- Tái cấu trúc
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- csharp
- Lĩnh vực
- build-system
Hướng nghiên cứu
Start with src/Platform/Microsoft.Testing.Platform.MSBuild/Tasks/TestingPlatformEntryPointTask.cs, separating the task orchestration around lines 12-160 from the embedded C#, Visual Basic, and F# templates. Preserve the existing template content and public API, then run the existing tests. Done means generated output is byte-identical and each of the four files is under 300 lines.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Overview
The file src/Platform/Microsoft.Testing.Platform.MSBuild/Tasks/TestingPlatformEntryPointTask.cs has grown to 739 lines, making it harder to navigate and maintain. (XxHashShared.cs at 925 lines is a verbatim upstream port and was skipped.)
Current State
- Size: 739 lines, C#
- Lines ~12-160: the MSBuild task (properties,
Execute, host factory validation,GenerateSource). - Remaining ~580 lines: embedded C#, VB and F# source templates for the generated entry point, in variants with/without entry point and with/without host factory.
Proposed Splits
TestingPlatformEntryPointTask.cs(partial): task orchestration and validation.TestingPlatformEntryPointTask.CSharpTemplates.cs: C# templates.TestingPlatformEntryPointTask.VisualBasicTemplates.cs: VB templates.TestingPlatformEntryPointTask.FSharpTemplates.cs: F# templates.
Acceptance Criteria
- Generated output is byte-identical
- Each new file is under 300 lines
- Public API unchanged; tests pass
Priority: Medium | Effort: Small
🤖 Automated content by GitHub Copilot. Generated by the Daily File Diet workflow. · copilot · auto · 29.2 AIC · ⌖ 8.2 AIC · ⊞ 12.1K · [◷]( · ◷)
- expires on Oct 1, 2026, 6:58 PM UTC
- Ngôn ngữ chính
- C#
- Star
- 1.1k
- Fork
- 312
- Merge trung bình
- 10 giờ 27 phút
- Pull request đã merge (30 ngày)
- 382
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc 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.
Issue khác của microsoft/testfx
-
type/automation type/tech-debt
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
Maintainer thường phản hồi trong vòng 1 ngày
-
area/dump external/other
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 45/100
microsoft/testfx#11981 · 4 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
type/automation type/tech-debt
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 5/100
Maintainer thường phản hồi trong vòng 1 ngày
-
area/server-mode-jsonrpc
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 8/100
Maintainer thường phản hồi trong vòng 1 ngày
-
[mutation-test-improver] Monthly Report 2026-10Có thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởtype/automation type/test-gap
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
microsoft/testfx#11704 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của microsoft/testfx
Issue tương tự
-
good first issue help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
-
untriaged
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
dotnet/dotnet-api-docs#13210 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
aspnet-core/svc doc-enhancement mvc/subsvc Pri2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
dotnet/AspNetCore.Docs#38016 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
HicServices/RDMP#2398 ·
-
[Android] Memory leak in MAUI Graphics text drawing and measurement during repeated renderingĐang mởarea-drawing platform/android t/bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
dotnet/maui#39676 · 1 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày