XARRA7028 AssemblyResolutionException in Android App Release Build #9629
Labels
Area: App+Library Build
Issues when building Library projects or Application projects.
need-attention
A xamarin-android contributor needs to review
Milestone
Android framework version
net9.0-android
Affected platform version
VS2022 17.12.3
Description
When building and publishing an Android app in Release mode the build always fails with the following error message, but the missing
System.Private.CoreLib Version=9.0.0.0
is present.The problem is the MSBuild target
_RemoveRegisterAttribute
, which is run after AOT. Is seems that in this state the assembly dependencies are not accessible any more.Steps to Reproduce
Did you find any workaround?
Disable the _RemoveRegisterAttribute target by setting in
Directory.Build.Props:
Relevant log output
The text was updated successfully, but these errors were encountered: