Open busec0 opened 1 year ago
This should probably give you a warning and not fail the build or ignore it if you have linux
in the name.
Your <None Remove=""/>
lines are on the right track, but I think this wildcard is picking them up:
So, you would need to use AndroidNativeLibrary Remove="...
instead of None
.
I think maybe the fix is we somehow put Exclude="*linux*"
in the default wildcard?
@jonathanpeppers Thanks! Using AndroidNativeLibrary
did it, so I can ignore the linux bits manually.
I agree, something like Exclude="*linux*"
should be fine - even though that depends on the folder structure, so I'd also find important properly documenting this - making the AndroidNativeLibraryRemove="...
more visible.
Android application type
.NET Android (net7.0-android, etc.)
Affected platform version
.NET 7.0.308
Description
Given an SDK project targeting:
And intended to be used on Android but also Linux, with native libraries, having the following structure:
Trying to build it, it fails with the given error, during the
_CreateAar
stepEven excluding the files has no effect.
Steps to Reproduce
Microsoft.NET.Sdk
project targetingnet6.0-android
libs
structure defined in the description.Did you find any workaround?
Just dirty hacks to be used around the
_CreateAar
step to avoid these being identified by the patternlibs/[arch]/*.so
Relevant log output