-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Labels
Area-NetSDKBlocking PartneruntriagedRequest triage from a team memberRequest triage from a team member
Description
Describe the bug
Likely due to the new default for $(SelfContained): #30038
Any Android Release build fails, because it is trying to not be self-contained:
error XALNS7028: System.IO.FileNotFoundException: Could not load assembly 'mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e'. Perhaps it doesn't exist in the Mono for Android profile?
Android Release builds are somewhat unique because they have these settings by default:
SelfContained=trueRuntimeIdentifier=(blank)RuntimeIdentifiers=android-arm;android-arm64;android-x86;android-x64
macOS/MacCatalyst applications may hit a similar issue, but I haven't heard yet.
To Reproduce
- install the SDK from main/nightly
dotnet workload install androiddotnet new androiddotnet build -c Release
Exceptions (if any)
After setting SelfContained=true by default, it tried to use the host RID:
error NETSDK1082: There was no runtime pack for Microsoft.Android available for the specified RuntimeIdentifier 'osx-x64'.
After setting UseCurrentRuntimeIdentifier=false, it fails with:
error NETSDK1191: A runtime identifier for the property 'SelfContained' couldn't be inferred. Specify a rid explicitly.
Further technical details
- Started happening here: [main] Update dependencies from dotnet/installer android#8018
This blocks MAUI scenarios for .NET 8 Preview 5.
Metadata
Metadata
Assignees
Labels
Area-NetSDKBlocking PartneruntriagedRequest triage from a team memberRequest triage from a team member