Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

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

Cerrado
#11,634 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
72/100
Tipo de issue
Refactorización
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
csharp
Área
build-system

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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
Lenguaje dominante
C#
Estrellas
1k
Forks
312
Merge medio
8 h 11 min
PR fusionados (30 d)
488

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de microsoft/testfx

Todos los issues de microsoft/testfx

Issues similares

Más issues de C#

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.