Commit 5adb4d4
authored
[generator] Prevent BG8A08 warning when using
Context: 0c90cf5
Context: be2acbc
As part of the Nullable Reference Type work in be2acbc, we added a
BG8A08 warning when the `//*/@path` attribute of a "metadata" element
is not 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.ns-replace (#1136)1 parent 62efc09 commit 5adb4d4
File tree
1 file changed
+4
-0
lines changed- src/Java.Interop.Tools.Generator/Metadata
1 file changed
+4
-0
lines changedLines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
44 | 48 | | |
45 | 49 | | |
46 | 50 | | |
| |||
0 commit comments