-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
net8.0-android->net9-android linker error on publish #111338
Comments
Tagging subscribers to this area: @dotnet/illink |
Any advise on this? is it something I can fix in my project or is an internal linker thing? This is currently blocking my upgrade path to net9. cheers |
@sbomer can you take a look? |
@sbomer, any progress on this? cheers |
@DevronTLA from the stacktrace I can't tell what the problem is. Would you be able to share a repro? |
@sbomer I'm having trouble reproducing this error in a basic project. Any clues on how to zero in on this error? The stack trace doesn't really offer any clues about where to look, and my project is quite large, so I don't really want to start dismantling it. |
Description
I've converted my project from net8-android to net9-android successfully. I was able to publish fine in net8, but on net9 the publish fails with a linker error:
I'm not really sure where/what is causing this error, or the steps to narrow it down. Happy to provide more information with some guidance.
Reproduction Steps
convert csproj from:
to
and using:
publish command line is:
dotnet publish /bl -v diag -f net9.0-android
if I set config as:
the publish succeeds but with very large aab files.
Expected behavior
publish command to successfully complete as per net8-android.
Actual behavior
dotnet publish fails with above error.
Regression?
yes, worked ok in net8-android.
Known Workarounds
none viable found.
Configuration
android-arm;android-arm64;android-x86;android-x64
Other information
🤷
The text was updated successfully, but these errors were encountered: