MSBuildDumper
I published a tool to print out the evaluated values of properties and items in an MSBuild project:
https://github.com/kirillosenkov/msbuildtools
It is available on Chocolatey:
cinst MSBuildDumper
Usage:
MSBuildDumper MyProject.csproj > props.txt
I’ve blogged about this earlier:
but now I decided to actually put it on GitHub and publish it on Chocolatey so that it is easily available on a new machine.
As a word of warning, this prints out the evaluated values of properties and items at the moment when the evaluation pass completes, but before targets actually start building. Since MSBuild targets can mutate the values of properties and items, it is unclear what the “final value” actually means, so only use the tool’s output as an approximation. You need an MSBuild debugger or diagnostic log to inspect how the values change over time as the project is building.