You may see:
The item "xxxx" in item list "NoneWithTargetPath" does not define a value for metadata "TransformOnBuild". In order to use this metadata, either qualify it by specifying %(NoneWithTargetPath.TransformOnBuild), or ensure that all items in this list define a value for this metadata.
The two potential workarounds are:
.csprojfile should address the issue.