MSBuild: Compare ItemGroups or access by index
问题 For a C++ project, I want to autogenerate a defs.h file with project definitions, such as the date, git commit, ... to automate the versioning process of my application. Therefore I am trying to create a MSBuild Target that will extract the latest git tag, git commit, and the current date and save it to a temporary gitinfo.txt file. Another build target will depend on that file and generate a .h file. In order to avoid unnecessary recompiles of my project, the .h file and for that reason the