AzureAD / microsoft-authentication-library-for-dotnet

Microsoft Authentication Library (MSAL) for .NET
https://aka.ms/msal-net
MIT License
1.39k stars 342 forks source link

[Bug] Trimming doesn't work on net8-ios #4518

Open charlesroddie opened 8 months ago

charlesroddie commented 8 months ago

Library version used

4.57

.NET version

net8-ios

Scenario

PublicClient - mobile app

Is this a new or an existing app?

This is a new app or experiment

Issue description and reproduction steps

Build a dotnet8-ios app with NativeAOT. This will give trim warnings below related to MSAL.

@bgavrilMS stated in https://github.com/AzureAD/microsoft-authentication-library-for-dotnet/issues/3407#issuecomment-1893422413

We've done the work to move from Newtonsoft to System.Text.Json only for our net6 and net6-windows target, we did not do it for net6-ios / net6-android targets.

2024-01-15T21:50:38.8130720Z ILC : Trim analysis warning IL2026: Microsoft.Identity.Json.Serialization.DefaultSerializationBinder.GetTypeFromTypeNameKey(StructMultiKey`2<String,String>): Using member 'System.Reflection.Assembly.GetType(String)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Types might be removed. 
2024-01-15T21:50:38.8132400Z ILC : Trim analysis warning IL2057: Microsoft.Identity.Json.Serialization.DefaultSerializationBinder.GetTypeFromTypeNameKey(StructMultiKey`2<String,String>): Unrecognized value passed to the parameter 'typeName' of method 'System.Type.GetType(String)'. It's not possible to guarantee the availability of the target type. 
2024-01-15T21:50:39.5941890Z ILC : Trim analysis warning IL2026: Microsoft.Identity.Json.Serialization.DefaultSerializationBinder.GetGenericTypeFromTypeName(String,Assembly): Using member 'System.Reflection.Assembly.GetType(String)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Types might be removed. 
2024-01-15T21:50:39.5943380Z ILC : Trim analysis warning IL2055: Microsoft.Identity.Json.Serialization.DefaultSerializationBinder.GetGenericTypeFromTypeName(String,Assembly): Call to 'System.Type.MakeGenericType(Type[])' can not be statically analyzed. It's not possible to guarantee the availability of requirements of the generic type. 
2024-01-15T21:50:39.5944840Z ILC : AOT analysis warning IL3050: Microsoft.Identity.Json.Serialization.DefaultSerializationBinder.GetGenericTypeFromTypeName(String,Assembly): Using member 'System.Type.MakeGenericType(Type[])' which has 'RequiresDynamicCodeAttribute' can break functionality when AOT compiling. The native code for this instantiation might not be available at runtime. 
2024-01-15T21:50:42.9465030Z ILC : AOT analysis warning IL3050: Microsoft.Identity.Json.Serialization.JsonSerializerInternalReader.CreateList(JsonReader,Type,JsonContract,JsonProperty,Object,String): Using member 'System.Array.CreateInstance(Type,Int32)' which has 'RequiresDynamicCodeAttribute' can break functionality when AOT compiling. The code for an array of the specified type might not be available. 
2024-01-15T21:50:42.9632670Z ILC : AOT analysis warning IL3050: Microsoft.Identity.Json.Utilities.DynamicProxyMetaObject`1.GetArgArray(DynamicMetaObject[],DynamicMetaObject): Using member 'System.Linq.Expressions.Expression.NewArrayInit(Type,IEnumerable`1<Expression>)' which has 'RequiresDynamicCodeAttribute' can break functionality when AOT compiling. Creating arrays at runtime requires dynamic code generation. 
2024-01-15T21:50:42.9658270Z ILC : AOT analysis warning IL3050: Microsoft.Identity.Json.Utilities.DynamicProxyMetaObject`1.GetArgArray(DynamicMetaObject[]): Using member 'System.Linq.Expressions.Expression.NewArrayInit(Type,IEnumerable`1<Expression>)' which has 'RequiresDynamicCodeAttribute' can break functionality when AOT compiling. Creating arrays at runtime requires dynamic code generation. 
2024-01-15T21:50:42.9791650Z ILC : AOT analysis warning IL3050: Microsoft.Identity.Json.Serialization.DefaultContractResolver.CreateArrayContract(Type): Using member 'System.Type.MakeGenericType(Type[])' which has 'RequiresDynamicCodeAttribute' can break functionality when AOT compiling. The native code for this instantiation might not be available at runtime. 
2024-01-15T21:50:42.9795370Z ILC : AOT analysis warning IL3050: Microsoft.Identity.Json.Serialization.DefaultContractResolver.CreateDictionaryContract(Type): Using member 'System.Type.MakeGenericType(Type[])' which has 'RequiresDynamicCodeAttribute' can break functionality when AOT compiling. The native code for this instantiation might not be available at runtime. 
2024-01-15T21:50:42.9796660Z ILC : AOT analysis warning IL3050: Microsoft.Identity.Json.Serialization.DefaultContractResolver.CreateDictionaryContract(Type): Using member 'System.Type.MakeGenericType(Type[])' which has 'RequiresDynamicCodeAttribute' can break functionality when AOT compiling. The native code for this instantiation might not be available at runtime. 
2024-01-15T21:50:42.9802660Z ILC : Trim analysis warning IL2080: Microsoft.Identity.Json.Serialization.DefaultContractResolver.CreateISerializableContract(Type): 'this' argument does not satisfy 'DynamicallyAccessedMemberTypes.PublicConstructors', 'DynamicallyAccessedMemberTypes.NonPublicConstructors' in call to 'System.Type.GetConstructor(BindingFlags,Binder,Type[],ParameterModifier[])'. The field 'Microsoft.Identity.Json.Serialization.JsonContract.NonNullableUnderlyingType' does not have matching annotations. The source value must declare at least the same requirements as those declared on the target location it is assigned to. 
2024-01-15T21:50:43.4570580Z ILC : AOT analysis warning IL3050: Microsoft.Identity.Json.Serialization.JsonDictionaryContract.CreateWrapper(Object): Using member 'System.Type.MakeGenericType(Type[])' which has 'RequiresDynamicCodeAttribute' can break functionality when AOT compiling. The native code for this instantiation might not be available at runtime. 
2024-01-15T21:50:43.4572350Z ILC : Trim analysis warning IL2080: Microsoft.Identity.Json.Serialization.JsonDictionaryContract.CreateWrapper(Object): 'this' argument does not satisfy 'DynamicallyAccessedMemberTypes.PublicConstructors' in call to 'System.Type.GetConstructor(Type[])'. The field 'Microsoft.Identity.Json.Serialization.JsonDictionaryContract._genericWrapperType' does not have matching annotations. The source value must declare at least the same requirements as those declared on the target location it is assigned to. 
2024-01-15T21:50:43.5067820Z ILC : AOT analysis warning IL3050: Microsoft.Identity.Json.Serialization.JsonDictionaryContract.JsonDictionaryContract(Type): Using member 'System.Type.MakeGenericType(Type[])' which has 'RequiresDynamicCodeAttribute' can break functionality when AOT compiling. The native code for this instantiation might not be available at runtime. 
2024-01-15T21:50:43.5069680Z ILC : AOT analysis warning IL3050: Microsoft.Identity.Json.Serialization.JsonDictionaryContract.JsonDictionaryContract(Type): Using member 'System.Type.MakeGenericType(Type[])' which has 'RequiresDynamicCodeAttribute' can break functionality when AOT compiling. The native code for this instantiation might not be available at runtime. 
2024-01-15T21:50:43.5071240Z ILC : AOT analysis warning IL3050: Microsoft.Identity.Json.Serialization.JsonDictionaryContract.JsonDictionaryContract(Type): Using member 'System.Type.MakeGenericType(Type[])' which has 'RequiresDynamicCodeAttribute' can break functionality when AOT compiling. The native code for this instantiation might not be available at runtime. 
2024-01-15T21:50:43.5072540Z ILC : AOT analysis warning IL3050: Microsoft.Identity.Json.Serialization.JsonDictionaryContract.JsonDictionaryContract(Type): Using member 'System.Type.MakeGenericType(Type[])' which has 'RequiresDynamicCodeAttribute' can break functionality when AOT compiling. The native code for this instantiation might not be available at runtime. 
2024-01-15T21:50:43.5106240Z ILC : Trim analysis warning IL2070: Microsoft.Identity.Json.Serialization.DefaultContractResolver.GetAttributeConstructor(Type): 'this' argument does not satisfy 'DynamicallyAccessedMemberTypes.PublicConstructors', 'DynamicallyAccessedMemberTypes.NonPublicConstructors' in call to 'System.Type.GetConstructors(BindingFlags)'. The parameter '#0' of method 'Microsoft.Identity.Json.Serialization.DefaultContractResolver.GetAttributeConstructor(Type)' does not have matching annotations. The source value must declare at least the same requirements as those declared on the target location it is assigned to. 
2024-01-15T21:50:43.5111370Z ILC : Trim analysis warning IL2070: Microsoft.Identity.Json.Serialization.DefaultContractResolver.GetAttributeConstructor(Type): 'this' argument does not satisfy 'DynamicallyAccessedMemberTypes.PublicConstructors' in call to 'System.Type.GetConstructor(Type[])'. The parameter '#0' of method 'Microsoft.Identity.Json.Serialization.DefaultContractResolver.GetAttributeConstructor(Type)' does not have matching annotations. The source value must declare at least the same requirements as those declared on the target location it is assigned to. 
2024-01-15T21:50:43.5114740Z ILC : AOT analysis warning IL3050: Microsoft.Identity.Json.Serialization.JsonArrayContract.JsonArrayContract(Type): Using member 'System.Type.MakeGenericType(Type[])' which has 'RequiresDynamicCodeAttribute' can break functionality when AOT compiling. The native code for this instantiation might not be available at runtime. 
2024-01-15T21:50:43.5116100Z ILC : AOT analysis warning IL3050: Microsoft.Identity.Json.Serialization.JsonArrayContract.JsonArrayContract(Type): Using member 'System.Type.MakeGenericType(Type[])' which has 'RequiresDynamicCodeAttribute' can break functionality when AOT compiling. The native code for this instantiation might not be available at runtime. 
2024-01-15T21:50:43.5117760Z ILC : AOT analysis warning IL3050: Microsoft.Identity.Json.Serialization.JsonArrayContract.JsonArrayContract(Type): Using member 'System.Type.MakeGenericType(Type[])' which has 'RequiresDynamicCodeAttribute' can break functionality when AOT compiling. The native code for this instantiation might not be available at runtime. 
2024-01-15T21:50:43.5119140Z ILC : AOT analysis warning IL3050: Microsoft.Identity.Json.Serialization.JsonArrayContract.JsonArrayContract(Type): Using member 'System.Type.MakeGenericType(Type[])' which has 'RequiresDynamicCodeAttribute' can break functionality when AOT compiling. The native code for this instantiation might not be available at runtime. 
2024-01-15T21:50:43.5120930Z ILC : AOT analysis warning IL3050: Microsoft.Identity.Json.Serialization.JsonArrayContract.JsonArrayContract(Type): Using member 'System.Type.MakeGenericType(Type[])' which has 'RequiresDynamicCodeAttribute' can break functionality when AOT compiling. The native code for this instantiation might not be available at runtime. 
2024-01-15T21:50:43.5122570Z ILC : AOT analysis warning IL3050: Microsoft.Identity.Json.Serialization.JsonArrayContract.JsonArrayContract(Type): Using member 'System.Type.MakeGenericType(Type[])' which has 'RequiresDynamicCodeAttribute' can break functionality when AOT compiling. The native code for this instantiation might not be available at runtime. 
2024-01-15T21:50:43.5123910Z ILC : AOT analysis warning IL3050: Microsoft.Identity.Json.Serialization.JsonArrayContract.JsonArrayContract(Type): Using member 'System.Type.MakeGenericType(Type[])' which has 'RequiresDynamicCodeAttribute' can break functionality when AOT compiling. The native code for this instantiation might not be available at runtime. 
2024-01-15T21:50:43.5140010Z ILC : Trim analysis warning IL2070: Microsoft.Identity.Json.Serialization.DefaultContractResolver.GetImmutableConstructor(Type,JsonPropertyCollection): 'this' argument does not satisfy 'DynamicallyAccessedMemberTypes.PublicConstructors' in call to 'System.Type.GetConstructors()'. The parameter '#0' of method 'Microsoft.Identity.Json.Serialization.DefaultContractResolver.GetImmutableConstructor(Type,JsonPropertyCollection)' does not have matching annotations. The source value must declare at least the same requirements as those declared on the target location it is assigned to. 
2024-01-15T21:50:43.5142480Z ILC : Trim analysis warning IL2070: Microsoft.Identity.Json.Serialization.DefaultContractResolver.GetParameterizedConstructor(Type): 'this' argument does not satisfy 'DynamicallyAccessedMemberTypes.PublicConstructors' in call to 'System.Type.GetConstructors(BindingFlags)'. The parameter '#0' of method 'Microsoft.Identity.Json.Serialization.DefaultContractResolver.GetParameterizedConstructor(Type)' does not have matching annotations. The source value must declare at least the same requirements as those declared on the target location it is assigned to. 
2024-01-15T21:50:43.5174660Z ILC : AOT analysis warning IL3050: Microsoft.Identity.Json.Serialization.DefaultContractResolver.SetExtensionDataDelegates(JsonObjectContract,MemberInfo): Using member 'System.Type.MakeGenericType(Type[])' which has 'RequiresDynamicCodeAttribute' can break functionality when AOT compiling. The native code for this instantiation might not be available at runtime. 
2024-01-15T21:50:43.5176730Z ILC : Trim analysis warning IL2075: Microsoft.Identity.Json.Serialization.DefaultContractResolver.SetExtensionDataDelegates(JsonObjectContract,MemberInfo): 'this' argument does not satisfy 'DynamicallyAccessedMemberTypes.PublicProperties' in call to 'System.Type.GetProperty(String,BindingFlags,Binder,Type,Type[],ParameterModifier[])'. The return value of method 'Microsoft.Identity.Json.Utilities.ReflectionUtils.GetMemberUnderlyingType(MemberInfo)' does not have matching annotations. The source value must declare at least the same requirements as those declared on the target location it is assigned to. 
2024-01-15T21:50:43.5178910Z ILC : Trim analysis warning IL2070: Microsoft.Identity.Json.Serialization.DefaultContractResolver.SetExtensionDataDelegates(JsonObjectContract,MemberInfo): 'this' argument does not satisfy 'DynamicallyAccessedMemberTypes.PublicProperties' in call to 'System.Type.GetProperty(String,BindingFlags,Binder,Type,Type[],ParameterModifier[])'. The parameter '' of method 'Microsoft.Identity.Json.Utilities.ReflectionUtils.ImplementsGenericDefinition(Type,Type,Type&)' does not have matching annotations. The source value must declare at least the same requirements as those declared on the target location it is assigned to. 
2024-01-15T21:50:43.5181320Z ILC : AOT analysis warning IL3050: Microsoft.Identity.Json.Serialization.DefaultContractResolver.SetExtensionDataDelegates(JsonObjectContract,MemberInfo): Using member 'System.Type.MakeGenericType(Type[])' which has 'RequiresDynamicCodeAttribute' can break functionality when AOT compiling. The native code for this instantiation might not be available at runtime. 
2024-01-15T21:50:43.5583010Z ILC : AOT analysis warning IL3050: Microsoft.Identity.Json.Utilities.ConvertUtils.GetTypeCode(Type,Boolean&): Using member 'System.Type.MakeGenericType(Type[])' which has 'RequiresDynamicCodeAttribute' can break functionality when AOT compiling. The native code for this instantiation might not be available at runtime. 
2024-01-15T21:50:43.5616440Z ILC : Trim analysis warning IL2070: Microsoft.Identity.Json.Utilities.ReflectionUtils.IsMethodOverridden(Type,Type,String): 'this' argument does not satisfy 'DynamicallyAccessedMemberTypes.PublicMethods', 'DynamicallyAccessedMemberTypes.NonPublicMethods' in call to 'System.Type.GetMethods(BindingFlags)'. The parameter '#0' of method 'Microsoft.Identity.Json.Utilities.ReflectionUtils.IsMethodOverridden(Type,Type,String)' does not have matching annotations. The source value must declare at least the same requirements as those declared on the target location it is assigned to. 
2024-01-15T21:50:43.5738380Z ILC : AOT analysis warning IL3050: Microsoft.Identity.Json.Utilities.CollectionUtils.ToMultidimensionalArray(IList,Type,Int32): Using member 'System.Array.CreateInstance(Type,Int32[])' which has 'RequiresDynamicCodeAttribute' can break functionality when AOT compiling. The code for an array of the specified type might not be available. 
2024-01-15T21:50:43.5775890Z ILC : AOT analysis warning IL3050: Microsoft.Identity.Json.Serialization.JsonArrayContract.CreateWrapper(Object): Using member 'System.Type.MakeGenericType(Type[])' which has 'RequiresDynamicCodeAttribute' can break functionality when AOT compiling. The native code for this instantiation might not be available at runtime. 
2024-01-15T21:50:43.5777870Z ILC : AOT analysis warning IL3050: Microsoft.Identity.Json.Serialization.JsonArrayContract.CreateWrapper(Object): Using member 'System.Type.MakeGenericType(Type[])' which has 'RequiresDynamicCodeAttribute' can break functionality when AOT compiling. The native code for this instantiation might not be available at runtime. 
2024-01-15T21:50:43.5779960Z ILC : Trim analysis warning IL2080: Microsoft.Identity.Json.Serialization.JsonArrayContract.CreateWrapper(Object): 'this' argument does not satisfy 'DynamicallyAccessedMemberTypes.PublicConstructors' in call to 'System.Type.GetConstructor(Type[])'. The field 'Microsoft.Identity.Json.Serialization.JsonArrayContract._genericWrapperType' does not have matching annotations. The source value must declare at least the same requirements as those declared on the target location it is assigned to. 
2024-01-15T21:50:46.2860440Z ILC : AOT analysis warning IL3050: Microsoft.Identity.Json.Serialization.JsonArrayContract.CreateTemporaryCollection(): Using member 'System.Type.MakeGenericType(Type[])' which has 'RequiresDynamicCodeAttribute' can break functionality when AOT compiling. The native code for this instantiation might not be available at runtime. 
2024-01-15T21:50:46.2933350Z ILC : AOT analysis warning IL3050: Microsoft.Identity.Json.Serialization.JsonDictionaryContract.CreateTemporaryDictionary(): Using member 'System.Type.MakeGenericType(Type[])' which has 'RequiresDynamicCodeAttribute' can break functionality when AOT compiling. The native code for this instantiation might not be available at runtime. 
2024-01-15T21:50:46.3181800Z ILC : Trim analysis warning IL2070: Microsoft.Identity.Json.Converters.KeyValuePairConverter.InitializeReflectionObject(Type): 'this' argument does not satisfy 'DynamicallyAccessedMemberTypes.PublicConstructors' in call to 'System.Type.GetConstructor(Type[])'. The parameter 't' of method 'Microsoft.Identity.Json.Converters.KeyValuePairConverter.InitializeReflectionObject(Type)' does not have matching annotations. The source value must declare at least the same requirements as those declared on the target location it is assigned to. 
2024-01-15T21:50:46.3344220Z ILC : Trim analysis warning IL2070: Microsoft.Identity.Json.Utilities.ReflectionUtils.ImplementsGenericDefinition(Type,Type,Type&): 'this' argument does not satisfy 'DynamicallyAccessedMemberTypes.Interfaces' in call to 'System.Type.GetInterfaces()'. The parameter '#0' of method 'Microsoft.Identity.Json.Utilities.ReflectionUtils.ImplementsGenericDefinition(Type,Type,Type&)' does not have matching annotations. The source value must declare at least the same requirements as those declared on the target location it is assigned to. 
2024-01-15T21:50:46.3350760Z ILC : Trim analysis warning IL2070: Microsoft.Identity.Json.Serialization.DefaultContractResolver.<>c.<GetExtensionDataMemberForType>b__44_0(Type): 'this' argument does not satisfy 'DynamicallyAccessedMemberTypes.PublicProperties', 'DynamicallyAccessedMemberTypes.NonPublicProperties' in call to 'System.Type.GetProperties(BindingFlags)'. The parameter 'baseType' of method 'Microsoft.Identity.Json.Serialization.DefaultContractResolver.<>c.<GetExtensionDataMemberForType>b__44_0(Type)' does not have matching annotations. The source value must declare at least the same requirements as those declared on the target location it is assigned to. 
2024-01-15T21:50:46.3353080Z ILC : Trim analysis warning IL2070: Microsoft.Identity.Json.Serialization.DefaultContractResolver.<>c.<GetExtensionDataMemberForType>b__44_0(Type): 'this' argument does not satisfy 'DynamicallyAccessedMemberTypes.PublicFields', 'DynamicallyAccessedMemberTypes.NonPublicFields' in call to 'System.Type.GetFields(BindingFlags)'. The parameter 'baseType' of method 'Microsoft.Identity.Json.Serialization.DefaultContractResolver.<>c.<GetExtensionDataMemberForType>b__44_0(Type)' does not have matching annotations. The source value must declare at least the same requirements as those declared on the target location it is assigned to. 
2024-01-15T21:50:46.3658290Z ILC : Trim analysis warning IL2026: Microsoft.Identity.Json.Utilities.ImmutableCollectionsUtils.TryBuildImmutableForArrayContract(Type,Type,Type&,ObjectConstructor`1<Object>&): Using member 'System.Reflection.Assembly.GetType(String)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Types might be removed. 
2024-01-15T21:50:46.3661510Z ILC : Trim analysis warning IL2026: Microsoft.Identity.Json.Utilities.ImmutableCollectionsUtils.TryBuildImmutableForArrayContract(Type,Type,Type&,ObjectConstructor`1<Object>&): Using member 'System.Reflection.Assembly.GetType(String)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Types might be removed. 
2024-01-15T21:50:46.3663660Z ILC : Trim analysis warning IL2075: Microsoft.Identity.Json.Utilities.ImmutableCollectionsUtils.TryBuildImmutableForArrayContract(Type,Type,Type&,ObjectConstructor`1<Object>&): 'this' argument does not satisfy 'DynamicallyAccessedMemberTypes.PublicMethods' in call to 'System.Type.GetMethods()'. The return value of method 'System.Reflection.Assembly.GetType(String)' does not have matching annotations. The source value must declare at least the same requirements as those declared on the target location it is assigned to. 
2024-01-15T21:50:46.3669390Z ILC : Trim analysis warning IL2055: Microsoft.Identity.Json.Utilities.ImmutableCollectionsUtils.TryBuildImmutableForArrayContract(Type,Type,Type&,ObjectConstructor`1<Object>&): Call to 'System.Type.MakeGenericType(Type[])' can not be statically analyzed. It's not possible to guarantee the availability of requirements of the generic type. 
2024-01-15T21:50:46.3672370Z ILC : AOT analysis warning IL3050: Microsoft.Identity.Json.Utilities.ImmutableCollectionsUtils.TryBuildImmutableForArrayContract(Type,Type,Type&,ObjectConstructor`1<Object>&): Using member 'System.Type.MakeGenericType(Type[])' which has 'RequiresDynamicCodeAttribute' can break functionality when AOT compiling. The native code for this instantiation might not be available at runtime. 
2024-01-15T21:50:46.3673800Z ILC : Trim analysis warning IL2060: Microsoft.Identity.Json.Utilities.ImmutableCollectionsUtils.TryBuildImmutableForArrayContract(Type,Type,Type&,ObjectConstructor`1<Object>&): Call to 'System.Reflection.MethodInfo.MakeGenericMethod(Type[])' can not be statically analyzed. It's not possible to guarantee the availability of requirements of the generic method. 
2024-01-15T21:50:46.3675400Z ILC : AOT analysis warning IL3050: Microsoft.Identity.Json.Utilities.ImmutableCollectionsUtils.TryBuildImmutableForArrayContract(Type,Type,Type&,ObjectConstructor`1<Object>&): Using member 'System.Reflection.MethodInfo.MakeGenericMethod(Type[])' which has 'RequiresDynamicCodeAttribute' can break functionality when AOT compiling. The native code for this instantiation might not be available at runtime. 
2024-01-15T21:50:46.3676800Z ILC : AOT analysis warning IL3050: Microsoft.Identity.Json.Utilities.CollectionUtils.ResolveEnumerableCollectionConstructor(Type,Type): Using member 'System.Type.MakeGenericType(Type[])' which has 'RequiresDynamicCodeAttribute' can break functionality when AOT compiling. The native code for this instantiation might not be available at runtime. 
2024-01-15T21:50:46.3678070Z ILC : AOT analysis warning IL3050: Microsoft.Identity.Json.Utilities.CollectionUtils.ResolveEnumerableCollectionConstructor(Type,Type,Type): Using member 'System.Type.MakeGenericType(Type[])' which has 'RequiresDynamicCodeAttribute' can break functionality when AOT compiling. The native code for this instantiation might not be available at runtime. 
2024-01-15T21:50:46.3679740Z ILC : Trim analysis warning IL2070: Microsoft.Identity.Json.Utilities.CollectionUtils.ResolveEnumerableCollectionConstructor(Type,Type,Type): 'this' argument does not satisfy 'DynamicallyAccessedMemberTypes.PublicConstructors' in call to 'System.Type.GetConstructors(BindingFlags)'. The parameter '#0' of method 'Microsoft.Identity.Json.Utilities.CollectionUtils.ResolveEnumerableCollectionConstructor(Type,Type,Type)' does not have matching annotations. The source value must declare at least the same requirements as those declared on the target location it is assigned to. 
2024-01-15T21:50:46.3681340Z ILC : Trim analysis warning IL2026: Microsoft.Identity.Json.Utilities.ImmutableCollectionsUtils.TryBuildImmutableForDictionaryContract(Type,Type,Type,Type&,ObjectConstructor`1<Object>&): Using member 'System.Reflection.Assembly.GetType(String)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Types might be removed. 
2024-01-15T21:50:46.3683010Z ILC : Trim analysis warning IL2026: Microsoft.Identity.Json.Utilities.ImmutableCollectionsUtils.TryBuildImmutableForDictionaryContract(Type,Type,Type,Type&,ObjectConstructor`1<Object>&): Using member 'System.Reflection.Assembly.GetType(String)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Types might be removed. 
2024-01-15T21:50:46.3684830Z ILC : Trim analysis warning IL2075: Microsoft.Identity.Json.Utilities.ImmutableCollectionsUtils.TryBuildImmutableForDictionaryContract(Type,Type,Type,Type&,ObjectConstructor`1<Object>&): 'this' argument does not satisfy 'DynamicallyAccessedMemberTypes.PublicMethods' in call to 'System.Type.GetMethods()'. The return value of method 'System.Reflection.Assembly.GetType(String)' does not have matching annotations. The source value must declare at least the same requirements as those declared on the target location it is assigned to. 
2024-01-15T21:50:46.3686480Z ILC : Trim analysis warning IL2055: Microsoft.Identity.Json.Utilities.ImmutableCollectionsUtils.TryBuildImmutableForDictionaryContract(Type,Type,Type,Type&,ObjectConstructor`1<Object>&): Call to 'System.Type.MakeGenericType(Type[])' can not be statically analyzed. It's not possible to guarantee the availability of requirements of the generic type. 
2024-01-15T21:50:46.3687850Z ILC : AOT analysis warning IL3050: Microsoft.Identity.Json.Utilities.ImmutableCollectionsUtils.TryBuildImmutableForDictionaryContract(Type,Type,Type,Type&,ObjectConstructor`1<Object>&): Using member 'System.Type.MakeGenericType(Type[])' which has 'RequiresDynamicCodeAttribute' can break functionality when AOT compiling. The native code for this instantiation might not be available at runtime. 
2024-01-15T21:50:46.3689330Z ILC : Trim analysis warning IL2060: Microsoft.Identity.Json.Utilities.ImmutableCollectionsUtils.TryBuildImmutableForDictionaryContract(Type,Type,Type,Type&,ObjectConstructor`1<Object>&): Call to 'System.Reflection.MethodInfo.MakeGenericMethod(Type[])' can not be statically analyzed. It's not possible to guarantee the availability of requirements of the generic method. 
2024-01-15T21:50:46.3690760Z ILC : AOT analysis warning IL3050: Microsoft.Identity.Json.Utilities.ImmutableCollectionsUtils.TryBuildImmutableForDictionaryContract(Type,Type,Type,Type&,ObjectConstructor`1<Object>&): Using member 'System.Reflection.MethodInfo.MakeGenericMethod(Type[])' which has 'RequiresDynamicCodeAttribute' can break functionality when AOT compiling. The native code for this instantiation might not be available at runtime. 
2024-01-15T21:50:46.3717790Z ILC : Trim analysis warning IL2070: Microsoft.Identity.Json.Serialization.JsonTypeReflector.GetAttribute<T>(Type): 'this' argument does not satisfy 'DynamicallyAccessedMemberTypes.Interfaces' in call to 'System.Type.GetInterfaces()'. The parameter '#0' of method 'Microsoft.Identity.Json.Serialization.JsonTypeReflector.GetAttribute<T>(Type)' does not have matching annotations. The source value must declare at least the same requirements as those declared on the target location it is assigned to. 
2024-01-15T21:50:46.3723330Z ILC : Trim analysis warning IL2075: Microsoft.Identity.Json.Serialization.JsonTypeReflector.GetAttribute<T>(MemberInfo): 'this' argument does not satisfy 'DynamicallyAccessedMemberTypes.Interfaces' in call to 'System.Type.GetInterfaces()'. The return value of method 'System.Reflection.MemberInfo.DeclaringType.get' does not have matching annotations. The source value must declare at least the same requirements as those declared on the target location it is assigned to. 
2024-01-15T21:50:46.3725150Z ILC : AOT analysis warning IL3050: Microsoft.Identity.Json.Serialization.JsonDynamicContract.CreateCallSiteGetter(String): Using member 'System.Runtime.CompilerServices.CallSite`1<Func`3<CallSite,Object,Object>>.Create(CallSiteBinder)' which has 'RequiresDynamicCodeAttribute' can break functionality when AOT compiling. Creating arrays at runtime requires dynamic code generation. 
2024-01-15T21:50:46.3726660Z ILC : AOT analysis warning IL3050: Microsoft.Identity.Json.Serialization.JsonDynamicContract.CreateCallSiteSetter(String): Using member 'System.Runtime.CompilerServices.CallSite`1<Func`4<CallSite,Object,Object,Object>>.Create(CallSiteBinder)' which has 'RequiresDynamicCodeAttribute' can break functionality when AOT compiling. Creating arrays at runtime requires dynamic code generation. 
2024-01-15T21:50:46.6421290Z ILC : Trim analysis warning IL2067: Microsoft.Identity.Json.Utilities.ExpressionReflectionDelegateFactory.CreateDefaultConstructor<T>(Type): '' argument does not satisfy 'DynamicallyAccessedMemberTypes.PublicParameterlessConstructor' in call to 'System.Linq.Expressions.Expression.New(Type)'. The parameter '#0' of method 'Microsoft.Identity.Json.Utilities.ExpressionReflectionDelegateFactory.CreateDefaultConstructor<T>(Type)' does not have matching annotations. The source value must declare at least the same requirements as those declared on the target location it is assigned to. 
2024-01-15T21:50:46.7224420Z ILC : Trim analysis warning IL2067: Microsoft.Identity.Json.Utilities.ReflectionUtils.GetDefaultValue(Type): 'type' argument does not satisfy 'DynamicallyAccessedMemberTypes.PublicParameterlessConstructor' in call to 'System.Activator.CreateInstance(Type)'. The parameter '#0' of method 'Microsoft.Identity.Json.Utilities.ReflectionUtils.GetDefaultValue(Type)' does not have matching annotations. The source value must declare at least the same requirements as those declared on the target location it is assigned to. 
2024-01-15T21:50:46.7255380Z ILC : Trim analysis warning IL2075: Microsoft.Identity.Json.Serialization.DefaultContractResolver.GetCallbackMethodsForType(Type,List`1<SerializationCallback>&,List`1<SerializationCallback>&,List`1<SerializationCallback>&,List`1<SerializationCallback>&,List`1<SerializationErrorCallback>&): 'this' argument does not satisfy 'DynamicallyAccessedMemberTypes.PublicMethods', 'DynamicallyAccessedMemberTypes.NonPublicMethods' in call to 'System.Type.GetMethods(BindingFlags)'. The return value of method 'System.Collections.Generic.List`1.Enumerator<Type>.Current.get' does not have matching annotations. The source value must declare at least the same requirements as those declared on the target location it is assigned to. 
2024-01-15T21:50:46.7259500Z ILC : Trim analysis warning IL2070: Microsoft.Identity.Json.Utilities.ReflectionUtils.GetDefaultConstructor(Type,Boolean): 'this' argument does not satisfy 'DynamicallyAccessedMemberTypes.PublicConstructors', 'DynamicallyAccessedMemberTypes.NonPublicConstructors' in call to 'System.Type.GetConstructors(BindingFlags)'. The parameter '#0' of method 'Microsoft.Identity.Json.Utilities.ReflectionUtils.GetDefaultConstructor(Type,Boolean)' does not have matching annotations. The source value must declare at least the same requirements as those declared on the target location it is assigned to. 
2024-01-15T21:50:46.7382800Z ILC : Trim analysis warning IL2026: Microsoft.Identity.Json.Utilities.DynamicUtils.BinderWrapper.SetMember(String,Type): Using member 'Microsoft.CSharp.RuntimeBinder.Binder.SetMember(CSharpBinderFlags,String,Type,IEnumerable`1<CSharpArgumentInfo>)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Using dynamic types might cause types or members to be removed by trimmer. 
2024-01-15T21:50:46.7385070Z ILC : Trim analysis warning IL2026: Microsoft.Identity.Json.Utilities.DynamicUtils.BinderWrapper.GetMember(String,Type): Using member 'Microsoft.CSharp.RuntimeBinder.Binder.GetMember(CSharpBinderFlags,String,Type,IEnumerable`1<CSharpArgumentInfo>)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Using dynamic types might cause types or members to be removed by trimmer. 
2024-01-15T21:50:46.7423770Z ILC : Trim analysis warning IL2070: Microsoft.Identity.Json.Utilities.ReflectionUtils.GetMemberInfoFromType(Type,MemberInfo): 'this' argument does not satisfy 'DynamicallyAccessedMemberTypes.PublicProperties', 'DynamicallyAccessedMemberTypes.NonPublicProperties' in call to 'System.Type.GetProperty(String,BindingFlags,Binder,Type,Type[],ParameterModifier[])'. The parameter '#0' of method 'Microsoft.Identity.Json.Utilities.ReflectionUtils.GetMemberInfoFromType(Type,MemberInfo)' does not have matching annotations. The source value must declare at least the same requirements as those declared on the target location it is assigned to. 
2024-01-15T21:50:46.7426880Z ILC : Trim analysis warning IL2070: Microsoft.Identity.Json.Utilities.ReflectionUtils.GetMemberInfoFromType(Type,MemberInfo): 'this' argument does not satisfy 'DynamicallyAccessedMemberTypes.PublicConstructors', 'DynamicallyAccessedMemberTypes.NonPublicConstructors', 'DynamicallyAccessedMemberTypes.PublicMethods', 'DynamicallyAccessedMemberTypes.NonPublicMethods', 'DynamicallyAccessedMemberTypes.PublicFields', 'DynamicallyAccessedMemberTypes.NonPublicFields', 'DynamicallyAccessedMemberTypes.PublicNestedTypes', 'DynamicallyAccessedMemberTypes.NonPublicNestedTypes', 'DynamicallyAccessedMemberTypes.PublicProperties', 'DynamicallyAccessedMemberTypes.NonPublicProperties', 'DynamicallyAccessedMemberTypes.PublicEvents', 'DynamicallyAccessedMemberTypes.NonPublicEvents' in call to 'System.Type.GetMember(String,MemberTypes,BindingFlags)'. The parameter '#0' of method 'Microsoft.Identity.Json.Utilities.ReflectionUtils.GetMemberInfoFromType(Type,MemberInfo)' does not have matching annotations. The source value must declare at least the same requirements as those declared on the target location it is assigned to. 
2024-01-15T21:50:46.7591670Z ILC : Trim analysis warning IL2075: Microsoft.Identity.Json.Serialization.DefaultContractResolver.CreateShouldSerializeTest(MemberInfo): 'this' argument does not satisfy 'DynamicallyAccessedMemberTypes.PublicMethods' in call to 'System.Type.GetMethod(String,Type[])'. The return value of method 'System.Reflection.MemberInfo.DeclaringType.get' does not have matching annotations. The source value must declare at least the same requirements as those declared on the target location it is assigned to. 
2024-01-15T21:50:46.7596630Z ILC : Trim analysis warning IL2075: Microsoft.Identity.Json.Serialization.DefaultContractResolver.SetIsSpecifiedActions(JsonProperty,MemberInfo,Boolean): 'this' argument does not satisfy 'DynamicallyAccessedMemberTypes.PublicProperties', 'DynamicallyAccessedMemberTypes.NonPublicProperties' in call to 'System.Type.GetProperty(String,BindingFlags)'. The return value of method 'System.Reflection.MemberInfo.DeclaringType.get' does not have matching annotations. The source value must declare at least the same requirements as those declared on the target location it is assigned to. 
2024-01-15T21:50:46.7598970Z ILC : Trim analysis warning IL2075: Microsoft.Identity.Json.Serialization.DefaultContractResolver.SetIsSpecifiedActions(JsonProperty,MemberInfo,Boolean): 'this' argument does not satisfy 'DynamicallyAccessedMemberTypes.PublicFields', 'DynamicallyAccessedMemberTypes.NonPublicFields' in call to 'System.Type.GetField(String,BindingFlags)'. The return value of method 'System.Reflection.MemberInfo.DeclaringType.get' does not have matching annotations. The source value must declare at least the same requirements as those declared on the target location it is assigned to. 
2024-01-15T21:50:46.7608220Z ILC : Trim analysis warning IL2070: Microsoft.Identity.Json.Utilities.TypeExtensions.AssignableToTypeName(Type,String,Boolean,Type&): 'this' argument does not satisfy 'DynamicallyAccessedMemberTypes.Interfaces' in call to 'System.Type.GetInterfaces()'. The parameter '#0' of method 'Microsoft.Identity.Json.Utilities.TypeExtensions.AssignableToTypeName(Type,String,Boolean,Type&)' does not have matching annotations. The source value must declare at least the same requirements as those declared on the target location it is assigned to. 
2024-01-15T21:50:46.7749920Z ILC : Trim analysis warning IL2060: Microsoft.Identity.Json.Utilities.FSharpUtils.CreateSeq(Type): Call to 'System.Reflection.MethodInfo.MakeGenericMethod(Type[])' can not be statically analyzed. It's not possible to guarantee the availability of requirements of the generic method. 
2024-01-15T21:50:46.7751490Z ILC : AOT analysis warning IL3050: Microsoft.Identity.Json.Utilities.FSharpUtils.CreateSeq(Type): Using member 'System.Reflection.MethodInfo.MakeGenericMethod(Type[])' which has 'RequiresDynamicCodeAttribute' can break functionality when AOT compiling. The native code for this instantiation might not be available at runtime. 
2024-01-15T21:50:46.7761490Z ILC : Trim analysis warning IL2070: Microsoft.Identity.Json.Utilities.TypeExtensions.ImplementInterface(Type,Type): 'this' argument does not satisfy 'DynamicallyAccessedMemberTypes.Interfaces' in call to 'System.Type.GetInterfaces()'. The parameter '#0' of method 'Microsoft.Identity.Json.Utilities.TypeExtensions.ImplementInterface(Type,Type)' does not have matching annotations. The source value must declare at least the same requirements as those declared on the target location it is assigned to. 
2024-01-15T21:50:46.7888870Z ILC : Trim analysis warning IL2070: Microsoft.Identity.Json.Utilities.ReflectionObject.Create(Type,MethodBase,String[]): 'this' argument does not satisfy 'DynamicallyAccessedMemberTypes.PublicConstructors', 'DynamicallyAccessedMemberTypes.PublicMethods', 'DynamicallyAccessedMemberTypes.PublicFields', 'DynamicallyAccessedMemberTypes.PublicNestedTypes', 'DynamicallyAccessedMemberTypes.PublicProperties', 'DynamicallyAccessedMemberTypes.PublicEvents' in call to 'System.Type.GetMember(String,BindingFlags)'. The parameter '#0' of method 'Microsoft.Identity.Json.Utilities.ReflectionObject.Create(Type,MethodBase,String[])' does not have matching annotations. The source value must declare at least the same requirements as those declared on the target location it is assigned to. 
2024-01-15T21:50:46.7891630Z ILC : AOT analysis warning IL3050: Microsoft.Identity.Json.Utilities.FSharpUtils.CreateMap(Type,Type): Using member 'System.Reflection.MethodInfo.MakeGenericMethod(Type[])' which has 'RequiresDynamicCodeAttribute' can break functionality when AOT compiling. The native code for this instantiation might not be available at runtime. 
2024-01-15T21:50:46.7895650Z ILC : Trim analysis warning IL2026: Microsoft.Identity.Json.Utilities.FSharpUtils.FSharpUtils(Assembly): Using member 'System.Reflection.Assembly.GetType(String)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Types might be removed. 
2024-01-15T21:50:46.7898230Z ILC : Trim analysis warning IL2026: Microsoft.Identity.Json.Utilities.FSharpUtils.FSharpUtils(Assembly): Using member 'System.Reflection.Assembly.GetType(String)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Types might be removed. 
2024-01-15T21:50:46.7901110Z ILC : Trim analysis warning IL2026: Microsoft.Identity.Json.Utilities.FSharpUtils.FSharpUtils(Assembly): Using member 'System.Reflection.Assembly.GetType(String)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Types might be removed. 
2024-01-15T21:50:46.7903930Z ILC : Trim analysis warning IL2075: Microsoft.Identity.Json.Utilities.FSharpUtils.FSharpUtils(Assembly): 'this' argument does not satisfy 'DynamicallyAccessedMemberTypes.PublicProperties' in call to 'System.Type.GetProperty(String)'. The return value of method 'System.Reflection.Assembly.GetType(String)' does not have matching annotations. The source value must declare at least the same requirements as those declared on the target location it is assigned to. 
2024-01-15T21:50:46.7905700Z ILC : Trim analysis warning IL2075: Microsoft.Identity.Json.Utilities.FSharpUtils.FSharpUtils(Assembly): 'this' argument does not satisfy 'DynamicallyAccessedMemberTypes.PublicProperties' in call to 'System.Type.GetProperty(String)'. The return value of method 'System.Reflection.Assembly.GetType(String)' does not have matching annotations. The source value must declare at least the same requirements as those declared on the target location it is assigned to. 
2024-01-15T21:50:46.7907640Z ILC : Trim analysis warning IL2075: Microsoft.Identity.Json.Utilities.FSharpUtils.FSharpUtils(Assembly): 'this' argument does not satisfy 'DynamicallyAccessedMemberTypes.PublicProperties' in call to 'System.Type.GetProperty(String)'. The return value of method 'System.Reflection.Assembly.GetType(String)' does not have matching annotations. The source value must declare at least the same requirements as those declared on the target location it is assigned to. 
2024-01-15T21:50:46.7910020Z ILC : Trim analysis warning IL2075: Microsoft.Identity.Json.Utilities.FSharpUtils.FSharpUtils(Assembly): 'this' argument does not satisfy 'DynamicallyAccessedMemberTypes.PublicMethods' in call to 'System.Type.GetMethod(String)'. The return value of method 'System.Reflection.Assembly.GetType(String)' does not have matching annotations. The source value must declare at least the same requirements as those declared on the target location it is assigned to. 
2024-01-15T21:50:46.7911430Z ILC : Trim analysis warning IL2026: Microsoft.Identity.Json.Utilities.FSharpUtils.FSharpUtils(Assembly): Using member 'System.Reflection.Assembly.GetType(String)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Types might be removed. 
2024-01-15T21:50:46.7912870Z ILC : Trim analysis warning IL2075: Microsoft.Identity.Json.Utilities.FSharpUtils.FSharpUtils(Assembly): 'this' argument does not satisfy 'DynamicallyAccessedMemberTypes.PublicMethods' in call to 'System.Type.GetMethod(String)'. The return value of method 'System.Reflection.Assembly.GetType(String)' does not have matching annotations. The source value must declare at least the same requirements as those declared on the target location it is assigned to. 
2024-01-15T21:50:46.7914210Z ILC : Trim analysis warning IL2026: Microsoft.Identity.Json.Utilities.FSharpUtils.FSharpUtils(Assembly): Using member 'System.Reflection.Assembly.GetType(String)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Types might be removed. 
2024-01-15T21:50:46.7924330Z ILC : Trim analysis warning IL2080: Microsoft.Identity.Json.Utilities.ConvertUtils.CreateCastConverter(StructMultiKey`2<Type,Type>): 'this' argument does not satisfy 'DynamicallyAccessedMemberTypes.PublicMethods' in call to 'System.Type.GetMethod(String,Type[])'. The field 'Microsoft.Identity.Json.Utilities.StructMultiKey`2<Type,Type>.Value2' does not have matching annotations. The source value must declare at least the same requirements as those declared on the target location it is assigned to. 
2024-01-15T21:50:46.7926500Z ILC : Trim analysis warning IL2080: Microsoft.Identity.Json.Utilities.ConvertUtils.CreateCastConverter(StructMultiKey`2<Type,Type>): 'this' argument does not satisfy 'DynamicallyAccessedMemberTypes.PublicMethods' in call to 'System.Type.GetMethod(String,Type[])'. The field 'Microsoft.Identity.Json.Utilities.StructMultiKey`2<Type,Type>.Value2' does not have matching annotations. The source value must declare at least the same requirements as those declared on the target location it is assigned to. 
2024-01-15T21:50:46.7942600Z ILC : Trim analysis warning IL2057: Microsoft.Identity.Json.Utilities.ConvertUtils.TryConvertInternal(Object,CultureInfo,Type,Object&): Unrecognized value passed to the parameter 'typeName' of method 'System.Type.GetType(String,Boolean)'. It's not possible to guarantee the availability of the target type. 
2024-01-15T21:50:46.8411700Z ILC : Trim analysis warning IL2080: Microsoft.Identity.Json.Utilities.EnumUtils.InitializeValuesAndNames(StructMultiKey`2<Type,NamingStrategy>): 'this' argument does not satisfy 'DynamicallyAccessedMemberTypes.PublicFields', 'DynamicallyAccessedMemberTypes.NonPublicFields' in call to 'System.Type.GetField(String,BindingFlags)'. The field 'Microsoft.Identity.Json.Utilities.StructMultiKey`2<Type,NamingStrategy>.Value1' does not have matching annotations. The source value must declare at least the same requirements as those declared on the target location it is assigned to. 
2024-01-15T21:50:49.1457530Z ILC : Trim analysis warning IL2070: Microsoft.Identity.Json.Utilities.FSharpUtils.GetMethodWithNonPublicFallback(Type,String,BindingFlags): 'this' argument does not satisfy 'DynamicallyAccessedMemberTypes.PublicMethods', 'DynamicallyAccessedMemberTypes.NonPublicMethods' in call to 'System.Type.GetMethod(String,BindingFlags)'. The parameter '#0' of method 'Microsoft.Identity.Json.Utilities.FSharpUtils.GetMethodWithNonPublicFallback(Type,String,BindingFlags)' does not have matching annotations. The source value must declare at least the same requirements as those declared on the target location it is assigned to. 
2024-01-15T21:50:49.1459880Z ILC : Trim analysis warning IL2070: Microsoft.Identity.Json.Utilities.FSharpUtils.GetMethodWithNonPublicFallback(Type,String,BindingFlags): 'this' argument does not satisfy 'DynamicallyAccessedMemberTypes.PublicMethods', 'DynamicallyAccessedMemberTypes.NonPublicMethods' in call to 'System.Type.GetMethod(String,BindingFlags)'. The parameter '#0' of method 'Microsoft.Identity.Json.Utilities.FSharpUtils.GetMethodWithNonPublicFallback(Type,String,BindingFlags)' does not have matching annotations. The source value must declare at least the same requirements as those declared on the target location it is assigned to. 
2024-01-15T21:50:49.1462760Z ILC : Trim analysis warning IL2075: Microsoft.Identity.Json.Utilities.FSharpUtils.CreateFSharpFuncCall(Type,String): 'this' argument does not satisfy 'DynamicallyAccessedMemberTypes.PublicMethods' in call to 'System.Type.GetMethod(String,BindingFlags)'. The return value of method 'System.Reflection.MethodInfo.ReturnType.get' does not have matching annotations. The source value must declare at least the same requirements as those declared on the target location it is assigned to. 
2024-01-15T21:50:49.1464960Z ILC : Trim analysis warning IL2055: Microsoft.Identity.Json.Utilities.FSharpUtils.BuildMapCreator<TKey,TValue>(): Call to 'System.Type.MakeGenericType(Type[])' can not be statically analyzed. It's not possible to guarantee the availability of requirements of the generic type. 
2024-01-15T21:50:49.1466340Z ILC : AOT analysis warning IL3050: Microsoft.Identity.Json.Utilities.FSharpUtils.BuildMapCreator<TKey,TValue>(): Using member 'System.Type.MakeGenericType(Type[])' which has 'RequiresDynamicCodeAttribute' can break functionality when AOT compiling. The native code for this instantiation might not be available at runtime. 
2024-01-15T21:50:49.1467930Z ILC : Trim analysis warning IL2080: Microsoft.Identity.Json.Utilities.FSharpUtils.BuildMapCreator<TKey,TValue>(): 'this' argument does not satisfy 'DynamicallyAccessedMemberTypes.PublicConstructors' in call to 'System.Type.GetConstructor(Type[])'. The field 'Microsoft.Identity.Json.Utilities.FSharpUtils._mapType' does not have matching annotations. The source value must declare at least the same requirements as those declared on the target location it is assigned to. 
2024-01-15T21:50:49.1742560Z ILC : Trim analysis warning IL2070: Microsoft.Identity.Json.Utilities.ReflectionUtils.GetFields(Type,BindingFlags): 'this' argument does not satisfy 'DynamicallyAccessedMemberTypes.PublicFields', 'DynamicallyAccessedMemberTypes.NonPublicFields' in call to 'System.Type.GetFields(BindingFlags)'. The parameter '#0' of method 'Microsoft.Identity.Json.Utilities.ReflectionUtils.GetFields(Type,BindingFlags)' does not have matching annotations. The source value must declare at least the same requirements as those declared on the target location it is assigned to. 
2024-01-15T21:50:49.1745400Z ILC : Trim analysis warning IL2070: Microsoft.Identity.Json.Utilities.ReflectionUtils.GetProperties(Type,BindingFlags): 'this' argument does not satisfy 'DynamicallyAccessedMemberTypes.PublicProperties', 'DynamicallyAccessedMemberTypes.NonPublicProperties' in call to 'System.Type.GetProperties(BindingFlags)'. The parameter '#0' of method 'Microsoft.Identity.Json.Utilities.ReflectionUtils.GetProperties(Type,BindingFlags)' does not have matching annotations. The source value must declare at least the same requirements as those declared on the target location it is assigned to. 
2024-01-15T21:50:49.1748120Z ILC : Trim analysis warning IL2070: Microsoft.Identity.Json.Utilities.ReflectionUtils.GetProperties(Type,BindingFlags): 'this' argument does not satisfy 'DynamicallyAccessedMemberTypes.Interfaces' in call to 'System.Type.GetInterfaces()'. The parameter '#0' of method 'Microsoft.Identity.Json.Utilities.ReflectionUtils.GetProperties(Type,BindingFlags)' does not have matching annotations. The source value must declare at least the same requirements as those declared on the target location it is assigned to. 
2024-01-15T21:50:49.1750220Z ILC : Trim analysis warning IL2065: Microsoft.Identity.Json.Utilities.ReflectionUtils.GetProperties(Type,BindingFlags): Value passed to implicit 'this' parameter of method 'System.Type.GetProperties(BindingFlags)' can not be statically determined and may not meet 'DynamicallyAccessedMembersAttribute' requirements. 
2024-01-15T21:50:49.1753570Z ILC : Trim analysis warning IL2075: Microsoft.Identity.Json.Utilities.ReflectionUtils.IsOverridenGenericMember(MemberInfo,BindingFlags): 'this' argument does not satisfy 'DynamicallyAccessedMemberTypes.PublicConstructors', 'DynamicallyAccessedMemberTypes.NonPublicConstructors', 'DynamicallyAccessedMemberTypes.PublicMethods', 'DynamicallyAccessedMemberTypes.NonPublicMethods', 'DynamicallyAccessedMemberTypes.PublicFields', 'DynamicallyAccessedMemberTypes.NonPublicFields', 'DynamicallyAccessedMemberTypes.PublicNestedTypes', 'DynamicallyAccessedMemberTypes.NonPublicNestedTypes', 'DynamicallyAccessedMemberTypes.PublicProperties', 'DynamicallyAccessedMemberTypes.NonPublicProperties', 'DynamicallyAccessedMemberTypes.PublicEvents', 'DynamicallyAccessedMemberTypes.NonPublicEvents' in call to 'System.Type.GetMember(String,BindingFlags)'. The return value of method 'System.Type.GetGenericTypeDefinition()' does not have matching annotations. The source value must declare at least the same requirements as those declared on the target location it is assigned to. 
2024-01-15T21:50:49.7225080Z ILC : Trim analysis warning IL2070: Microsoft.Identity.Json.Utilities.ReflectionUtils.GetChildPrivateProperties(IList`1<PropertyInfo>,Type,BindingFlags): 'this' argument does not satisfy 'DynamicallyAccessedMemberTypes.PublicProperties', 'DynamicallyAccessedMemberTypes.NonPublicProperties' in call to 'System.Type.GetProperties(BindingFlags)'. The parameter '#1' of method 'Microsoft.Identity.Json.Utilities.ReflectionUtils.GetChildPrivateProperties(IList`1<PropertyInfo>,Type,BindingFlags)' does not have matching annotations. The source value must declare at least the same requirements as those declared on the target location it is assigned to. 
2024-01-15T21:50:49.7265180Z ILC : Trim analysis warning IL2070: Microsoft.Identity.Json.Utilities.ReflectionUtils.GetChildPrivateFields(IList`1<MemberInfo>,Type,BindingFlags): 'this' argument does not satisfy 'DynamicallyAccessedMemberTypes.PublicFields', 'DynamicallyAccessedMemberTypes.NonPublicFields' in call to 'System.Type.GetFields(BindingFlags)'. The parameter '#1' of method 'Microsoft.Identity.Json.Utilities.ReflectionUtils.GetChildPrivateFields(IList`1<MemberInfo>,Type,BindingFlags)' does not have matching annotations. The source value must declare at least the same requirements as those declared on the target location it is assigned to. 
2024-01-15T21:50:49.7754900Z ILC : Trim analysis warning IL2070: Microsoft.Identity.Json.Serialization.JsonTypeReflector.<>c__DisplayClass21_0.<GetCreator>b__0(Object[]): 'this' argument does not satisfy 'DynamicallyAccessedMemberTypes.PublicConstructors' in call to 'System.Type.GetConstructor(Type[])'. The parameter 'type' of method 'Microsoft.Identity.Json.Serialization.JsonTypeReflector.GetCreator(Type)' does not have matching annotations. The source value must declare at least the same requirements as those declared on the target location it is assigned to. 

Relevant code snippets

No response

Expected behavior

No response

Identity provider

Microsoft Entra ID (Work and School accounts and Personal Microsoft accounts)

Regression

No response

Solution and workarounds

No response

trwalke commented 8 months ago

Need to implement System.Text.Json for net6-ios / net6-android targets.