You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
Describe the bug
Likely due to the new default for
$(SelfContained)
: #30038Any Android
Release
build fails, because it is trying to not be self-contained:Android
Release
builds are somewhat unique because they have these settings by default:SelfContained=true
RuntimeIdentifier=
(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
dotnet workload install android
dotnet new android
dotnet build -c Release
Exceptions (if any)
After setting
SelfContained=true
by default, it tried to use the host RID:After setting
UseCurrentRuntimeIdentifier=false
, it fails with:Further technical details
This blocks MAUI scenarios for .NET 8 Preview 5.
The text was updated successfully, but these errors were encountered: