Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

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

クローズ
#11,634 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
72/100
issue の種類
リファクタリング
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
csharp
領域
build-system

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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
主要言語
C#
スター
1k
フォーク
312
平均マージ
7時間 51分
マージ済み PR(30日)
499

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

microsoft/testfx のほかの issue

microsoft/testfx の issue をすべて見る

似ている issue

C# の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。