Uh oh!
There was an error while loading. Please reload this page.
This repository was archived by the owner on Jul 6, 2026. It is now read-only.
This repository was archived by the owner on Jul 6, 2026. It is now read-only.
There was an error while loading. Please reload this page.
<remove-attr> doesn't work as expected #976
Given an
api.xmlelement like:You would expect to be able to remove the
api-sinceattribute with this metadata:However, even though
generatorreads thenameattribute, it then proceeds to ignore it and remove all attributes on the matched node. This seems unintuitive, and I'm not sure how this could ever be successfully used in a binding project, since leaving an empty<class>, etc. node causesgeneratorto crash.Relevant code:
https://github.com/xamarin/java.interop/blob/0c90cf5cd67c5bd4978fbcf016281d330426989f/src/Java.Interop.Tools.Generator/Metadata/FixupXmlDocument.cs#L149-L167
<remove-attr>seems to be undocumented: https://docs.microsoft.com/en-us/xamarin/android/platform/binding-java-library/customizing-bindings/java-bindings-metadata