Skip to content

Conversation

@jpobst
Copy link
Contributor

@jpobst jpobst commented Aug 7, 2023

As part of the NRT work in #1099, we added a warning when the path attribute of a "metadata" element isn't provided. However, metadata files can also contain <ns-replace> elements, which do not have a path attribute, and thus erroneously trigger this warning:

generated\msbuild-metadata.xml(3,4): warning BG8A08: Metadata.xml element '<ns-replace source="com.google.androidx" replacement="Xamarin.AndroidX" />' is missing the 'path' attribute. 

Skip running any of the standard "metadata" logic when we hit a <ns-replace> element, as they are handled elsewhere.

@jpobst jpobst marked this pull request as ready for review August 7, 2023 19:04
@jonpryor jonpryor merged commit 5adb4d4 into main Aug 7, 2023
@jonpryor jonpryor deleted the ns-replace branch August 7, 2023 19:37
jonpryor pushed a commit to dotnet/android that referenced this pull request Aug 10, 2023
Changes: dotnet/java-interop@62efc09...5adb4d4

  * dotnet/java-interop@5adb4d48: [generator] Prevent BG8A08 warning when using `ns-replace` (dotnet/java-interop#1136)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
@github-actions github-actions bot locked and limited conversation to collaborators Apr 12, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants