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
The register-protocol optimization is used to determine whether static interface constructors from the managed-static registrar are trimmed away or not:
See:
https://github.com/xamarin/xamarin-macios/blob/f29834a751b20e2b26f348219f1fc9b6df19ea4b/tools/common/Optimizations.cs#L268
The
register-protocoloptimization is used to determine whether static interface constructors from the managed-static registrar are trimmed away or not:https://github.com/xamarin/xamarin-macios/blob/f29834a751b20e2b26f348219f1fc9b6df19ea4b/tools/linker/CoreOptimizeGeneratedCode.cs#L1365-L1377
and this is required to get smaller apps + not reference frameworks unnecessarily (see #21002).
The current workaround is to add this to the csproj: