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
We need to set the System.Runtime.CompilerServices.RuntimeFeature.IsDynamicCodeSupported feature to false when using FullAOT (i.e. AOT + no interpreter).
This is done by setting the DynamicCodeSupport property to false:
As the dotnet/runtime side has been merged in, we should try it out on xamarin .net8 branch once we start referencing the version including the change via something like:
<DynamicCodeSupportCondition="'$(DynamicCodeSupport)' == '' and '$(UseInterpreter)' != 'true'">false</DynamicCodeSupport>
We need to set the
System.Runtime.CompilerServices.RuntimeFeature.IsDynamicCodeSupported
feature tofalse
when using FullAOT (i.e. AOT + no interpreter).This is done by setting the
DynamicCodeSupport
property tofalse
:https://github.com/dotnet/sdk/blob/9ca8336afab6247a22e745c2de4960e9b660d164/src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.Sdk.targets#L529-L532
The NativeAOT compiler does that here:
https://github.com/dotnet/sdk/blob/9ca8336afab6247a22e745c2de4960e9b660d164/src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.Publish.targets#L27
We need to do the same when using MonoAOT + no interpreter.
The text was updated successfully, but these errors were encountered: