Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

[file-diet] Refactor TestingPlatformEntryPointTask.cs (739 lines) into focused files

Đã đóng
#11,634 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

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ả

type/automation type/tech-debt
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
  1. TestingPlatformEntryPointTask.cs (partial): task orchestration and validation.
  2. TestingPlatformEntryPointTask.CSharpTemplates.cs: C# templates.
  3. TestingPlatformEntryPointTask.VisualBasicTemplates.cs: VB templates.
  4. 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

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.

Issue khác của microsoft/testfx

Tất cả issue của microsoft/testfx

Issue tương tự

Thêm issue về C#

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.