Skip to content

Add telemetry to differentiate build failure reasons #13006

@YuliiaKovalova

Description

@YuliiaKovalova

Currently, MSBuild's BuildTelemetry class tracks general build success/failure via the BuildSuccess boolean property, but does not provide granularity on why a build failed. This makes it difficult to analyze failure patterns and improve the developer experience.

Add telemetry data to categorize build failure reasons when BuildSuccess = false. The failure categories should include at minimum:

Image

Success Criteria

When a build fails, telemetry should report the primary failure category
Error counts by category should be included
The first error code encountered could optionally be included for debugging
Data should be available in both VS telemetry and SDK aggregated telemetry

Metadata

Metadata

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions