Description
MAUI Android NativeAOT publishing fails consistently because ILCompiler expects System.Runtime.CompilerServices.AsyncHelpers.RestoreInlinedFrameContexts, but the method is absent from the supplied System.Private.CoreLib.
The failure reproduces on both Pixel8 and GalaxyA16 legs in two consecutive dotnet/performance CI builds.
Error
ILCompiler.CodeGenerationFailedException: Code generation failed for method
'Async variant: [System.Private.CoreLib]System.IO.FileStream.DisposeAsync()'
System.InvalidOperationException: Expected method 'RestoreInlinedFrameContexts' not found on type
'[System.Private.CoreLib]System.Runtime.CompilerServices.AsyncHelpers'
The subsequent dotnet publish command exits with code 1 for net11.0-android, android-arm64, with:
/p:UseMonoRuntime=false
/p:PublishAot=true
Affected builds
Versions
- Target framework:
net11.0-android
- Runtime identifier:
android-arm64
- Android workload:
37.0.0-rc.2.2294
- ILCompiler/runtime package:
11.0.0-rc.2.26422.106
- MAUI workload:
11.0.0-preview.7.26418.6
Description
MAUI Android NativeAOT publishing fails consistently because ILCompiler expects
System.Runtime.CompilerServices.AsyncHelpers.RestoreInlinedFrameContexts, but the method is absent from the suppliedSystem.Private.CoreLib.The failure reproduces on both Pixel8 and GalaxyA16 legs in two consecutive
dotnet/performanceCI builds.Error
The subsequent
dotnet publishcommand exits with code 1 fornet11.0-android,android-arm64, with:Affected builds
Versions
net11.0-androidandroid-arm6437.0.0-rc.2.229411.0.0-rc.2.26422.10611.0.0-preview.7.26418.6