Repository navigation
Improve XA0141 warning #9544
Description
Activity
- addedArea: App+Library BuildIssues when building Library projects or Application projects.Issues when building Library projects or Application projects.
on Nov 21, 2024 - addedneeds-triageIssues that need to be assigned.Issues that need to be assigned.
on Nov 21, 2024 - removedneeds-triageIssues that need to be assigned.Issues that need to be assigned.
on Nov 21, 2024 I think @dellis1972 looked into it sometime ago and determined that the information isn't available for transient packages. I'll see to adding arch information, but I can't do much about getting better nuget info. I'll leave that to @dellis1972 and @jonathanpeppers :)
- added a commit that references this issue
on Nov 22, 2024 Partial fix: #9547
- added a commit that references this issue
on Nov 22, 2024 This is going to require a fair bit of "plumbing" that I don't currently understand.
Working backwards:
libface_detector_v2_jni.socomes fromobj/Release/net9.0-android/lp/92/jl/jni/armeabi-v7a/libface_detector_v2_jni.so,obj/Release/net9.0-android/lp/76/jl/jni/armeabi-v7a/libface_detector_v2_jni.so- as per
obj/Release/net9.0-android/lp/map.cache:obj/Release/net9.0-android/lp/92is fromplayservicesvisionfacecontourinternal-16.1.0.aarobj/Release/net9.0-android/lp/76is fromplay-services-vision-face-contour-internal.aar
- Both
playservicesvisionfacecontourinternal-16.1.0.aarandplay-services-vision-face-contour-internal.aarare from@(XamarinBuildDownload)artifacts, e.g.11:04:44.957 1:7>Target "_XbdRestoreItems_playservicesvisionfacecontourinternal_16_1_0: (TargetId:147)" in file "$HOME/.nuget/packages/xamarin.googleplayservices.vision.face.contour.internal/116.1.0.19/buildTransitive/net8.0-android34.0/Xamarin.GooglePlayServices.Vision.Face.Contour.Internal.targets" from project "/Volumes/Xamarin-Work/tmp/gda-9544/gda-9544.csproj" (target "_XamarinBuildAddDownloadedItems" depends on it): Added Item(s): XamarinBuildDownload= playservicesvisionfacecontourinternal-16.1.0 Kind=Uncompressed Sha256= ToFile=playservicesvisionfacecontourinternal-16.1.0.aar Url=https://dl.google.com/dl/android/maven2/com/google/android/gms/play-services-vision-face-contour-internal/16.1.0/play-services-vision-face-contour-internal-16.1.0.aar - Ergo,
play-services-vision-face-contour-internal-16.1.0.aarcomes from theXamarin.GooglePlayServices.Vision.Face.Contour.InternalNuGet package.
How do we provide enough information/metadata/etc. for
<BuildApk/>, when givenobj/Release/net9.0-android/lp/92/jl/jni/armeabi-v7a/libface_detector_v2_jni.so, that it can "work backwards" and determine that it comes from theXamarin.GooglePlayServices.Vision.Face.Contour.InternalNuGet package?Nuget information can be propagated to the
.soITaskItem from the_ReferencePathitem, which has all the nuget info.- added 2 commits that reference this issue
on Nov 22, 2024 See also: #9559
- added a commit that references this issue
on Jan 7, 2025 - added a commit that references this issue
on Jan 9, 2025 - locked and limited conversation to collaborators
on Feb 8, 2025
.NET 9.0.100
The NuGet package information in the
XA0141warning seems helpful, but it doesn't appear to actually work.Repro:
results in:
We should:
arm64-v8a/libface_detector_v2_jni.so), as each package will likely contain many versions with the same file name.An updated example: