-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Closed
Closed
Copy link
Labels
area-Codegen-AOT-monoin-prThere is an active PR which will close this issue when it is mergedThere is an active PR which will close this issue when it is mergedos-iosApple iOSApple iOS
Milestone
Description
From @mlancione on Wed, 20 Nov 2024 05:02:37 GMT
Apple platform
iOS
Framework version
net9.0-*
Affected platform version
.NET 9.0.100
Description
Getting a failed to AOT compile error when building the below repro project.
It seems that adding Microsoft.Maui.Essentials and Microsoft.Extensions.DependencyInjection NuGet packages and referencing a Microsoft.Extensions.DependencyInjection type in code causes the build error.
Note: The build error only happens when UseInterpreter=false and TrimMode=partial.
Steps to Reproduce
Build repro project:
Did you find any workaround?
Setting either UseInterpreter=true or TrimMode=full will avoid the build error.
Build logs
Copied from original issue dotnet/macios#21663
Migoked and Syed-RI
Metadata
Metadata
Assignees
Labels
area-Codegen-AOT-monoin-prThere is an active PR which will close this issue when it is mergedThere is an active PR which will close this issue when it is mergedos-iosApple iOSApple iOS