You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Xamarin.Android.Build.Tasks] Fix Removal of Non Duplicate elements (dotnet#856)
Fixes: https://bugzilla.xamarin.com/show_bug.cgi?id=59473
Commit d079a42 went a bit too far when removing duplicates.
It removed *any* duplicate entry that appeared anywhere in the
document. What we really wanted to remove full duplicates that
exist at the same level as the current element in the document.
For example:
```xml
<foo>
<bar name="bar1">
<bar2 />
</bar>
<bar name="bar2">
<bar2 />
</bar>
<dupe/>
<dupe/>
</foo>
```
`<bar2/>` should *not* be removed but one of the `<dupe/>` values
should. This commit reworks `RemoveDuplicates()` code to handle the
correct logic. It also adds a unit test for this exact senario.
0 commit comments