What problem does it solve?
When MSBuild .targets logic changes, Static Web Assets pack tests fail because the produced nupkg contents no longer match test assertions, and tracing which MSBuild condition branch applies to a given TFM is tedious and error-prone.
Core Features & Use Cases
- Condition Tracing: Walks through
Microsoft.NET.Sdk.StaticWebAssets.Pack.targets to determine which MSBuild condition branch fires for a test's TFM and configuration.
- Assertion Updating: Guides updating
NuPkgContainsPatterns and NuPkgContain assertions to exactly match the nupkg entries produced by the active branch.
- Backward-Compatibility Guardrails: Ensures tests targeting older TFMs keep their legacy assertions untouched while only current-branch tests are updated.
- Use Case: After adding a new feature-flag condition to the pack targets, identify every failing pack test, determine its TFM, and update only the assertions for tests on the changed branch.
Quick Start
Fix the failing StaticWebAssetsPackIntegrationTest assertions by tracing the pack targets conditions for the test's TFM.