Open SGStino opened 7 years ago
The thing could set all elements in all property groups regardless of the condition attribute. Maybe use xpath instead?
//PropertyGroup/Version //PropertyGroup/Authors etc...
The structure is always:
<Project>
<PropertyGroup>
</PropertyGroup>
</Project>
Who cares if the Version or other attributes are present in two PropertyGroups?
If the project contains multiple property groups, the xmlmapper will have it as an Array.
properties here will be an array of propertygroup objects.
I suggest finding the first PropertyGroup without condition attribute on it and using that to set the properties on. Should be correct in most cases. Only when package metadata is set inside a conditional it won't find it. However, in that case I don't believe this script should be able to update it anyway.