KirillOsenkov / MSBuildStructuredLog

A logger for MSBuild that records a structured representation of executed targets, tasks, property and item values.
MIT License
1.44k stars 191 forks source link

Improve exception message when a property is not found #510

Closed 0xced closed 3 years ago

0xced commented 3 years ago

Building on top of #508 to provide an even better exception message that include both MSBuild version numbers (version from the binlog + version used by MSBuild Structured Log Viewer) for easy understanding of the problem.

Example exception message:

TaskRunner.MissingPropertyException: Property OutputUnresolvedAssemblyConflicts was not found on type Microsoft.Build.Tasks.ResolveAssemblyReference. This probably means that the task being run was recorded with a newer version of MSBuild (16.10.1+2fd48ab73) than the version used by MSBuild Structured Log Viewer (16.4.0.56501).