Install any skill in seconds. Free to start, no credit card required.
Get Started Free →microsoft/build-and-test
How to build and test .NET projects in the Agent Framework repository. Use this when verifying or testing changes.
Passed 17 of 20 test cases with the skill, and 8 of 20 without it.
and 12 more in the full report
10 fixed9 passed either way3 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 9 test cases the skill fixed. Same model, same prompt, with and without the skill.
When running tests in CI or locally with xUnit v3 under Microsoft Testing Platform (MTP), I want to generate a TRX test results file. Instead of using the old VSTest `--logger trx` switch, which option must be passed to `dotnet test`?
| Checked | Without skill | With skill |
|---|---|---|
| The command uses the --report-xunit-trx option. | Missed | Passed |
The instructions your model reads when the skill loads.
../project-structure/SKILL.md for project structure details.# From dotnet/ directory
dotnet restore --tl:off # Restore dependencies for all projects
dotnet build --tl:off # Build all projects
dotnet test # Run all tests
dotnet format # Auto-fix formatting for all projects
# Build/test/format a specific project (preferred for isolated/internal changes)
dotnet build src/Microsoft.Agents.AI.<Package> --tl:off
dotnet test --project tests/Microsoft.Agents.AI.<Package>.UnitTests
dotnet format src/Microsoft.Agents.AI.<Package>
# Run a single test
# Replace the filter values with the appropriate assembly, namespace, class, and method names for the test you want to run and use * as a wildcard elsewhere, e.g. "/*/*/HttpClientTests/GetAsync_ReturnsSuccessStatusCode"
# Use `--ignore-exit-code 8` to avoid failing the build when no tests are found for some projects
dotnet test --filter-query "/<assemblyFilter>/<namespaceFilter>/<classFilter>/<methodFilter>" --ignore-exit-code 8
# Run unit tests only
# Use `--ignore-exit-code 8` to avoid failing the build when no tests are found for integration test projects
dotnet test --filter-query "/*UnitTests*/*/*/*" --ignore-exit-code 8
Use --tl:off when building to avoid flickering when running commands in the agent.
The full solution is large. Use these shortcuts:
| Change type | What to do |
|---|---|
| Isolated/Internal logic | Build only the affected project and its *.UnitTests project. Fix issues, then build the full solution and run all unit tests. |
| Public API surface | Build the full solution and run all unit tests immediately. |
Example: Building a single code project for all target frameworks
test cases passed, vs 8 / 20 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.