Consider this scenario:
- You have
expansion-deps.projitemswhich contains the@(JdkIncludePath)item group. - You have
expansion.propswhich uses@(JdkIncludePath)to generate a$(_JdkIncludePaths)property - You have
expansion.projitemswhich creates a new@(_HostRuntime)item group which uses$(JdkIncludePath)within the%(_HostRuntime.CFlags)item metadata - You print out
%(_HostRuntime.CFlags).
Incredibly, behavior differs between xbuild, msbuild in mono 4.6, and msbuild in mono 4.8.