build-repair

Repair .NET solution build and test failures with Docker integration tests.

Updated Mar 18, 2022
One-click install
npx skills add https://github.com/mpaulosky/dotfiles --skill build-repair
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: build-repair
Source: https://github.com/mpaulosky/dotfiles/tree/main/.copilot/skills/build-repair
Command: npx skills add https://github.com/mpaulosky/dotfiles --skill build-repair

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Provides a repeatable, authoritative process to diagnose and repair build and test failures for the IssueManager .NET solution so developers and CI pipelines do not land broken commits.

Core Features & Use Cases

  • Iterative repair workflow: Step-by-step restore, build, and test sequence with zero-warning tolerance until the solution is clean.
  • Environment and dependency guidance: Highlights Directory.Packages.props for NuGet version issues and requires Docker for integration tests that use TestContainers.
  • Troubleshooting patterns: Common failure signatures and fixes for CI path issues, port conflicts, and flaky equality/assertion tests; suitable for local debugging and CI triage.

Quick Start

Ask the assistant to run the build-repair process on IssueManager by restoring packages, building the solution, running Release tests, and reporting errors with suggested fixes.

Frequently Asked Questions about build-repair

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fix .NET build failures and restore NuGet packages before pushing?

To fix .NET build failures, follow an iterative restore, build, and test sequence with zero-warning tolerance. Restore NuGet packages first, then build the solution, referencing Directory.Packages.props to resolve version conflicts until the build is clean.

Why do my .NET integration tests fail in CI when using TestContainers?

.NET integration tests fail in CI when Docker is not running because TestContainers requires Docker to provision dependencies. Ensure Docker is installed and active in your CI environment before running integration tests to avoid container provisioning failures.

How do I resolve NuGet version conflicts across my .NET solution?

To resolve NuGet version conflicts, reference the Directory.Packages.props file to centralize package versioning. Apply an iterative build repair workflow that enforces zero warnings to catch and fix mismatched package references across the entire .NET solution.

What is the best way to troubleshoot flaky unit and integration tests in a .NET solution?

The best way to troubleshoot flaky .NET tests is applying targeted failure signatures for port conflicts, CI path issues, and equality assertions. Run unit, integration, architecture, and web tests iteratively to isolate intermittent failures.

Does my CI pipeline need Docker to run .NET integration tests?

Yes, your CI pipeline needs Docker to run .NET integration tests that use TestContainers. Docker provides the isolated environments required for integration testing, so you must verify Docker availability in your CI environment before executing the test suite.

What steps should I take when my .NET build produces warnings in Release mode?

When your .NET Release build produces warnings, apply a strict zero-tolerance repair workflow by restoring packages, rebuilding, and running tests iteratively. Address each warning individually until the solution builds cleanly with zero warnings and zero test failures.