What problem does it solve?
Running MSBuild unit tests efficiently is tricky because this repo uses xUnit v3 with the Microsoft.Testing.Platform (MTP) runner instead of VSTest, so many familiar dotnet test flags silently do nothing. This Skill guides you through fast scoped test loops during development and full validation passes before finalizing a change.
Core Features & Use Cases
- Fast dev loop: Run a single test project with
dotnet test <project> -f net11.0 -- --filter-method "*MyFeature*" or invoke the built test exe directly for sub-30-second iterations.
- MTP vs VSTest flag guidance: Learn which flags apply (
--report-trx, --coverage, --filter-method, --filter-trait) and which VSTest-only flags are ignored (--filter, --blame, --collect, --logger trx).
- Final validation workflow: Run all TFMs per affected project, or the full repo suite via
build.cmd -test / build.sh --test, with TRX report capture for CI or reporting.
- Use Case: You modified code in
src/Tasks/** and want quick feedback. Use this Skill to run only Microsoft.Build.Tasks.UnitTests.csproj filtered to your feature, then run the full Release validation before declaring the change done.
Quick Start
Ask the AI to run the MSBuild unit tests for the project matching your changed source area, filtered to your feature, using the fast scoped dotnet test loop.