OpenTelemetry.AotCompatibility.Tests.AotCompatibilityTests.EnsureAotCompatibility  Source: AotCompatibilityTests.cs line 46  Duration: 56.9 sec Standard Output:  MSBuild version 17.5.1+f6fdcf537 for .NET Determining projects to restore... Restored C:\repos\opentelemetry-dotnet\test\OpenTelemetry.AotCompatibility.TestApp\OpenTelemetry.AotCompatibility.TestApp.csproj (in 532 ms). 18 of 19 projects are up-to-date for restore. OpenTelemetry.SemanticConventions -> C:\repos\opentelemetry-dotnet\src\OpenTelemetry.SemanticConventions\bin\Debug\netstandard2.0\OpenTelemetry.SemanticConventions.dll OpenTelemetry.Api -> C:\repos\opentelemetry-dotnet\src\OpenTelemetry.Api\bin\Debug\netstandard2.0\OpenTelemetry.Api.dll OpenTelemetry.Api.ProviderBuilderExtensions -> C:\repos\opentelemetry-dotnet\src\OpenTelemetry.Api.ProviderBuilderExtensions\bin\Debug\netstandard2.0\OpenTelemetry.Api.ProviderBuilderExtensions.dll OpenTelemetry.Shims.OpenTracing -> C:\repos\opentelemetry-dotnet\src\OpenTelemetry.Shims.OpenTracing\bin\Debug\netstandard2.0\OpenTelemetry.Shims.OpenTracing.dll OpenTelemetry.Extensions.Propagators -> C:\repos\opentelemetry-dotnet\src\OpenTelemetry.Extensions.Propagators\bin\Debug\netstandard2.0\OpenTelemetry.Extensions.Propagators.dll OpenTelemetry.Instrumentation.SqlClient -> C:\repos\opentelemetry-dotnet\src\OpenTelemetry.Instrumentation.SqlClient\bin\Debug\netstandard2.0\OpenTelemetry.Instrumentation.SqlClient.dll OpenTelemetry -> C:\repos\opentelemetry-dotnet\src\OpenTelemetry\bin\Debug\netstandard2.0\OpenTelemetry.dll OpenTelemetry.Exporter.InMemory -> C:\repos\opentelemetry-dotnet\src\OpenTelemetry.Exporter.InMemory\bin\Debug\netstandard2.0\OpenTelemetry.Exporter.InMemory.dll OpenTelemetry.Exporter.ZPages -> C:\repos\opentelemetry-dotnet\src\OpenTelemetry.Exporter.ZPages\bin\Debug\netstandard2.0\OpenTelemetry.Exporter.ZPages.dll OpenTelemetry.Exporter.Console -> C:\repos\opentelemetry-dotnet\src\OpenTelemetry.Exporter.Console\bin\Debug\netstandard2.0\OpenTelemetry.Exporter.Console.dll OpenTelemetry.Exporter.Prometheus.HttpListener -> C:\repos\opentelemetry-dotnet\src\OpenTelemetry.Exporter.Prometheus.HttpListener\bin\Debug\netstandard2.0\OpenTelemetry.Exporter.Prometheus.HttpListener.dll OpenTelemetry.Instrumentation.Http -> C:\repos\opentelemetry-dotnet\src\OpenTelemetry.Instrumentation.Http\bin\Debug\netstandard2.0\OpenTelemetry.Instrumentation.Http.dll OpenTelemetry.Extensions.Hosting -> C:\repos\opentelemetry-dotnet\src\OpenTelemetry.Extensions.Hosting\bin\Debug\netstandard2.0\OpenTelemetry.Extensions.Hosting.dll OpenTelemetry -> C:\repos\opentelemetry-dotnet\src\OpenTelemetry\bin\Debug\net6.0\OpenTelemetry.dll OpenTelemetry.Exporter.Prometheus.AspNetCore -> C:\repos\opentelemetry-dotnet\src\OpenTelemetry.Exporter.Prometheus.AspNetCore\bin\Debug\net6.0\OpenTelemetry.Exporter.Prometheus.AspNetCore.dll OpenTelemetry.Exporter.Zipkin -> C:\repos\opentelemetry-dotnet\src\OpenTelemetry.Exporter.Zipkin\bin\Debug\net6.0\OpenTelemetry.Exporter.Zipkin.dll OpenTelemetry.Exporter.Jaeger -> C:\repos\opentelemetry-dotnet\src\OpenTelemetry.Exporter.Jaeger\bin\Debug\net6.0\OpenTelemetry.Exporter.Jaeger.dll OpenTelemetry.Instrumentation.AspNetCore -> C:\repos\opentelemetry-dotnet\src\OpenTelemetry.Instrumentation.AspNetCore\bin\Debug\net7.0\OpenTelemetry.Instrumentation.AspNetCore.dll OpenTelemetry -> C:\repos\opentelemetry-dotnet\src\OpenTelemetry\bin\Debug\netstandard2.1\OpenTelemetry.dll OpenTelemetry.Instrumentation.GrpcNetClient -> C:\repos\opentelemetry-dotnet\src\OpenTelemetry.Instrumentation.GrpcNetClient\bin\Debug\netstandard2.1\OpenTelemetry.Instrumentation.GrpcNetClient.dll OpenTelemetry.AotCompatibility.TestApp -> C:\repos\opentelemetry-dotnet\test\OpenTelemetry.AotCompatibility.TestApp\bin\Debug\net7.0\win-x64\OpenTelemetry.AotCompatibility.TestApp.dll Generating native code C:\repos\opentelemetry-dotnet\src\OpenTelemetry.Exporter.Console\ConsoleTagTransformer.cs(38): Trim analysis warning IL2026: OpenTelemetry.Exporter.ConsoleTagTransformer.TransformArrayTag(String,Array): Using member 'System.Text.Json.JsonSerializer.Serialize(Array,JsonSerializerOptions)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved. [C:\repos\opentelemetry-dotnet\test\OpenTelemetry.AotCompatibility.TestApp\OpenTelemetry.AotCompatibility.TestApp.csproj] C:\repos\opentelemetry-dotnet\src\OpenTelemetry.Exporter.Console\ConsoleTagTransformer.cs(38): AOT analysis warning IL3050: OpenTelemetry.Exporter.ConsoleTagTransformer.TransformArrayTag(String,Array): Using member 'System.Text.Json.JsonSerializer.Serialize(Array,JsonSerializerOptions)' which has 'RequiresDynamicCodeAttribute' can break functionality when AOT compiling. JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications. [C:\repos\opentelemetry-dotnet\test\OpenTelemetry.AotCompatibility.TestApp\OpenTelemetry.AotCompatibility.TestApp.csproj] C:\repos\opentelemetry-dotnet\src\OpenTelemetry\Internal\Options\ConfigurationExtensions.cs(48): Trim analysis warning IL2026: OpenTelemetry.Internal.ConfigurationExtensions.TryGetStringValue(IConfiguration,String,String&): Using member 'Microsoft.Extensions.Configuration.ConfigurationBinder.GetValue(IConfiguration,String,String)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. In case the type is non-primitive, the trimmer cannot statically analyze the object's type so its members may be trimmed. [C:\repos\opentelemetry-dotnet\test\OpenTelemetry.AotCompatibility.TestApp\OpenTelemetry.AotCompatibility.TestApp.csproj] C:\repos\opentelemetry-dotnet\src\OpenTelemetry.Exporter.Jaeger\Implementation\JaegerTagTransformer.cs(50): Trim analysis warning IL2026: OpenTelemetry.Exporter.Jaeger.Implementation.JaegerTagTransformer.TransformArrayTag(String,Array): Using member 'System.Text.Json.JsonSerializer.Serialize(Array,JsonSerializerOptions)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved. [C:\repos\opentelemetry-dotnet\test\OpenTelemetry.AotCompatibility.TestApp\OpenTelemetry.AotCompatibility.TestApp.csproj] C:\repos\opentelemetry-dotnet\src\OpenTelemetry.Exporter.Jaeger\Implementation\JaegerTagTransformer.cs(50): AOT analysis warning IL3050: OpenTelemetry.Exporter.Jaeger.Implementation.JaegerTagTransformer.TransformArrayTag(String,Array): Using member 'System.Text.Json.JsonSerializer.Serialize(Array,JsonSerializerOptions)' which has 'RequiresDynamicCodeAttribute' can break functionality when AOT compiling. JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications. [C:\repos\opentelemetry-dotnet\test\OpenTelemetry.AotCompatibility.TestApp\OpenTelemetry.AotCompatibility.TestApp.csproj] C:\repos\opentelemetry-dotnet\src\OpenTelemetry\Internal\Options\ConfigurationExtensions.cs(48): Trim analysis warning IL2026: OpenTelemetry.Internal.ConfigurationExtensions.TryGetStringValue(IConfiguration,String,String&): Using member 'Microsoft.Extensions.Configuration.ConfigurationBinder.GetValue(IConfiguration,String,String)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. In case the type is non-primitive, the trimmer cannot statically analyze the object's type so its members may be trimmed. [C:\repos\opentelemetry-dotnet\test\OpenTelemetry.AotCompatibility.TestApp\OpenTelemetry.AotCompatibility.TestApp.csproj] C:\repos\opentelemetry-dotnet\src\OpenTelemetry.Exporter.Zipkin\Implementation\ZipkinTagTransformer.cs(38): Trim analysis warning IL2026: OpenTelemetry.Exporter.Zipkin.Implementation.ZipkinTagTransformer.TransformArrayTag(String,Array): Using member 'System.Text.Json.JsonSerializer.Serialize(Array,JsonSerializerOptions)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved. [C:\repos\opentelemetry-dotnet\test\OpenTelemetry.AotCompatibility.TestApp\OpenTelemetry.AotCompatibility.TestApp.csproj] C:\repos\opentelemetry-dotnet\src\OpenTelemetry.Exporter.Zipkin\Implementation\ZipkinTagTransformer.cs(38): AOT analysis warning IL3050: OpenTelemetry.Exporter.Zipkin.Implementation.ZipkinTagTransformer.TransformArrayTag(String,Array): Using member 'System.Text.Json.JsonSerializer.Serialize(Array,JsonSerializerOptions)' which has 'RequiresDynamicCodeAttribute' can break functionality when AOT compiling. JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications. [C:\repos\opentelemetry-dotnet\test\OpenTelemetry.AotCompatibility.TestApp\OpenTelemetry.AotCompatibility.TestApp.csproj] C:\repos\opentelemetry-dotnet\src\OpenTelemetry\Internal\ActivityInstrumentationHelper.cs(32): Trim analysis warning IL2026: OpenTelemetry.Instrumentation.ActivityInstrumentationHelper.CreateActivitySourceSetter(): Using member 'System.Linq.Expressions.Expression.Property(Expression,String)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Creating Expressions requires unreferenced code because the members being referenced by the Expression may be trimmed. [C:\repos\opentelemetry-dotnet\test\OpenTelemetry.AotCompatibility.TestApp\OpenTelemetry.AotCompatibility.TestApp.csproj] C:\repos\opentelemetry-dotnet\src\OpenTelemetry\Internal\ActivityInstrumentationHelper.cs(40): Trim analysis warning IL2026: OpenTelemetry.Instrumentation.ActivityInstrumentationHelper.CreateActivityKindSetter(): Using member 'System.Linq.Expressions.Expression.Property(Expression,String)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Creating Expressions requires unreferenced code because the members being referenced by the Expression may be trimmed. [C:\repos\opentelemetry-dotnet\test\OpenTelemetry.AotCompatibility.TestApp\OpenTelemetry.AotCompatibility.TestApp.csproj] C:\repos\opentelemetry-dotnet\src\OpenTelemetry.Instrumentation.AspNetCore\Implementation\AspNetCoreInstrumentationEventSource.cs(63): Trim analysis warning IL2026: OpenTelemetry.Instrumentation.AspNetCore.Implementation.AspNetCoreInstrumentationEventSource.RequestFilterException(String,String,String,String): Using member 'System.Diagnostics.Tracing.EventSource.WriteEvent(Int32,Object[])' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. EventSource will serialize the whole object graph. Trimmer will not safely handle this case because properties may be trimmed. This can be suppressed if the object is a primitive type. [C:\repos\opentelemetry-dotnet\test\OpenTelemetry.AotCompatibility.TestApp\OpenTelemetry.AotCompatibility.TestApp.csproj] C:\repos\opentelemetry-dotnet\src\OpenTelemetry.Instrumentation.AspNetCore\Implementation\AspNetCoreInstrumentationEventSource.cs(69): Trim analysis warning IL2026: OpenTelemetry.Instrumentation.AspNetCore.Implementation.AspNetCoreInstrumentationEventSource.EnrichmentException(String,String,String,String): Using member 'System.Diagnostics.Tracing.EventSource.WriteEvent(Int32,Object[])' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. EventSource will serialize the whole object graph. Trimmer will not safely handle this case because properties may be trimmed. This can be suppressed if the object is a primitive type. [C:\repos\opentelemetry-dotnet\test\OpenTelemetry.AotCompatibility.TestApp\OpenTelemetry.AotCompatibility.TestApp.csproj] C:\repos\opentelemetry-dotnet\src\OpenTelemetry\DiagnosticSourceInstrumentation\PropertyFetcher.cs(92): Trim analysis warning IL2070: OpenTelemetry.Instrumentation.PropertyFetcher`1.PropertyFetch.Create(TypeInfo,String): 'this' argument does not satisfy 'DynamicallyAccessedMemberTypes.PublicProperties', 'DynamicallyAccessedMemberTypes.NonPublicProperties' in call to 'System.Reflection.TypeInfo.DeclaredProperties.get'. The parameter 'type' of method 'OpenTelemetry.Instrumentation.PropertyFetcher`1.PropertyFetch.Create(TypeInfo,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. [C:\repos\opentelemetry-dotnet\test\OpenTelemetry.AotCompatibility.TestApp\OpenTelemetry.AotCompatibility.TestApp.csproj] C:\repos\opentelemetry-dotnet\src\OpenTelemetry\DiagnosticSourceInstrumentation\PropertyFetcher.cs(95): Trim analysis warning IL2070: OpenTelemetry.Instrumentation.PropertyFetcher`1.PropertyFetch.Create(TypeInfo,String): 'this' argument does not satisfy 'DynamicallyAccessedMemberTypes.PublicProperties' in call to 'System.Type.GetProperty(String)'. The parameter 'type' of method 'OpenTelemetry.Instrumentation.PropertyFetcher`1.PropertyFetch.Create(TypeInfo,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. [C:\repos\opentelemetry-dotnet\test\OpenTelemetry.AotCompatibility.TestApp\OpenTelemetry.AotCompatibility.TestApp.csproj] C:\repos\opentelemetry-dotnet\src\OpenTelemetry\DiagnosticSourceInstrumentation\PropertyFetcher.cs(109): AOT analysis warning IL3050: OpenTelemetry.Instrumentation.PropertyFetcher`1.PropertyFetch.g__CreateFetcherForProperty|0_1(PropertyInfo): 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. [C:\repos\opentelemetry-dotnet\test\OpenTelemetry.AotCompatibility.TestApp\OpenTelemetry.AotCompatibility.TestApp.csproj] C:\repos\opentelemetry-dotnet\src\OpenTelemetry\Internal\ActivityInstrumentationHelper.cs(32): Trim analysis warning IL2026: OpenTelemetry.Instrumentation.ActivityInstrumentationHelper.CreateActivitySourceSetter(): Using member 'System.Linq.Expressions.Expression.Property(Expression,String)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Creating Expressions requires unreferenced code because the members being referenced by the Expression may be trimmed. [C:\repos\opentelemetry-dotnet\test\OpenTelemetry.AotCompatibility.TestApp\OpenTelemetry.AotCompatibility.TestApp.csproj] C:\repos\opentelemetry-dotnet\src\OpenTelemetry\Internal\ActivityInstrumentationHelper.cs(40): Trim analysis warning IL2026: OpenTelemetry.Instrumentation.ActivityInstrumentationHelper.CreateActivityKindSetter(): Using member 'System.Linq.Expressions.Expression.Property(Expression,String)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Creating Expressions requires unreferenced code because the members being referenced by the Expression may be trimmed. [C:\repos\opentelemetry-dotnet\test\OpenTelemetry.AotCompatibility.TestApp\OpenTelemetry.AotCompatibility.TestApp.csproj] C:\repos\opentelemetry-dotnet\src\OpenTelemetry\DiagnosticSourceInstrumentation\PropertyFetcher.cs(92): Trim analysis warning IL2070: OpenTelemetry.Instrumentation.PropertyFetcher`1.PropertyFetch.Create(TypeInfo,String): 'this' argument does not satisfy 'DynamicallyAccessedMemberTypes.PublicProperties', 'DynamicallyAccessedMemberTypes.NonPublicProperties' in call to 'System.Reflection.TypeInfo.DeclaredProperties.get'. The parameter 'type' of method 'OpenTelemetry.Instrumentation.PropertyFetcher`1.PropertyFetch.Create(TypeInfo,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. [C:\repos\opentelemetry-dotnet\test\OpenTelemetry.AotCompatibility.TestApp\OpenTelemetry.AotCompatibility.TestApp.csproj] C:\repos\opentelemetry-dotnet\src\OpenTelemetry\DiagnosticSourceInstrumentation\PropertyFetcher.cs(95): Trim analysis warning IL2070: OpenTelemetry.Instrumentation.PropertyFetcher`1.PropertyFetch.Create(TypeInfo,String): 'this' argument does not satisfy 'DynamicallyAccessedMemberTypes.PublicProperties' in call to 'System.Type.GetProperty(String)'. The parameter 'type' of method 'OpenTelemetry.Instrumentation.PropertyFetcher`1.PropertyFetch.Create(TypeInfo,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. [C:\repos\opentelemetry-dotnet\test\OpenTelemetry.AotCompatibility.TestApp\OpenTelemetry.AotCompatibility.TestApp.csproj] C:\repos\opentelemetry-dotnet\src\OpenTelemetry\DiagnosticSourceInstrumentation\PropertyFetcher.cs(109): AOT analysis warning IL3050: OpenTelemetry.Instrumentation.PropertyFetcher`1.PropertyFetch.g__CreateFetcherForProperty|0_1(PropertyInfo): 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. [C:\repos\opentelemetry-dotnet\test\OpenTelemetry.AotCompatibility.TestApp\OpenTelemetry.AotCompatibility.TestApp.csproj] C:\repos\opentelemetry-dotnet\src\OpenTelemetry\Internal\ActivityInstrumentationHelper.cs(32): Trim analysis warning IL2026: OpenTelemetry.Instrumentation.ActivityInstrumentationHelper.CreateActivitySourceSetter(): Using member 'System.Linq.Expressions.Expression.Property(Expression,String)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Creating Expressions requires unreferenced code because the members being referenced by the Expression may be trimmed. [C:\repos\opentelemetry-dotnet\test\OpenTelemetry.AotCompatibility.TestApp\OpenTelemetry.AotCompatibility.TestApp.csproj] C:\repos\opentelemetry-dotnet\src\OpenTelemetry\Internal\ActivityInstrumentationHelper.cs(40): Trim analysis warning IL2026: OpenTelemetry.Instrumentation.ActivityInstrumentationHelper.CreateActivityKindSetter(): Using member 'System.Linq.Expressions.Expression.Property(Expression,String)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Creating Expressions requires unreferenced code because the members being referenced by the Expression may be trimmed. [C:\repos\opentelemetry-dotnet\test\OpenTelemetry.AotCompatibility.TestApp\OpenTelemetry.AotCompatibility.TestApp.csproj] C:\repos\opentelemetry-dotnet\src\OpenTelemetry\DiagnosticSourceInstrumentation\PropertyFetcher.cs(92): Trim analysis warning IL2070: OpenTelemetry.Instrumentation.PropertyFetcher`1.PropertyFetch.Create(TypeInfo,String): 'this' argument does not satisfy 'DynamicallyAccessedMemberTypes.PublicProperties', 'DynamicallyAccessedMemberTypes.NonPublicProperties' in call to 'System.Reflection.TypeInfo.DeclaredProperties.get'. The parameter 'type' of method 'OpenTelemetry.Instrumentation.PropertyFetcher`1.PropertyFetch.Create(TypeInfo,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. [C:\repos\opentelemetry-dotnet\test\OpenTelemetry.AotCompatibility.TestApp\OpenTelemetry.AotCompatibility.TestApp.csproj] C:\repos\opentelemetry-dotnet\src\OpenTelemetry\DiagnosticSourceInstrumentation\PropertyFetcher.cs(95): Trim analysis warning IL2070: OpenTelemetry.Instrumentation.PropertyFetcher`1.PropertyFetch.Create(TypeInfo,String): 'this' argument does not satisfy 'DynamicallyAccessedMemberTypes.PublicProperties' in call to 'System.Type.GetProperty(String)'. The parameter 'type' of method 'OpenTelemetry.Instrumentation.PropertyFetcher`1.PropertyFetch.Create(TypeInfo,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. [C:\repos\opentelemetry-dotnet\test\OpenTelemetry.AotCompatibility.TestApp\OpenTelemetry.AotCompatibility.TestApp.csproj] C:\repos\opentelemetry-dotnet\src\OpenTelemetry\DiagnosticSourceInstrumentation\PropertyFetcher.cs(109): AOT analysis warning IL3050: OpenTelemetry.Instrumentation.PropertyFetcher`1.PropertyFetch.g__CreateFetcherForProperty|0_1(PropertyInfo): 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. [C:\repos\opentelemetry-dotnet\test\OpenTelemetry.AotCompatibility.TestApp\OpenTelemetry.AotCompatibility.TestApp.csproj] C:\repos\opentelemetry-dotnet\src\OpenTelemetry\Internal\ActivityInstrumentationHelper.cs(32): Trim analysis warning IL2026: OpenTelemetry.Instrumentation.ActivityInstrumentationHelper.CreateActivitySourceSetter(): Using member 'System.Linq.Expressions.Expression.Property(Expression,String)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Creating Expressions requires unreferenced code because the members being referenced by the Expression may be trimmed. [C:\repos\opentelemetry-dotnet\test\OpenTelemetry.AotCompatibility.TestApp\OpenTelemetry.AotCompatibility.TestApp.csproj] C:\repos\opentelemetry-dotnet\src\OpenTelemetry\Internal\ActivityInstrumentationHelper.cs(40): Trim analysis warning IL2026: OpenTelemetry.Instrumentation.ActivityInstrumentationHelper.CreateActivityKindSetter(): Using member 'System.Linq.Expressions.Expression.Property(Expression,String)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Creating Expressions requires unreferenced code because the members being referenced by the Expression may be trimmed. [C:\repos\opentelemetry-dotnet\test\OpenTelemetry.AotCompatibility.TestApp\OpenTelemetry.AotCompatibility.TestApp.csproj] C:\repos\opentelemetry-dotnet\src\OpenTelemetry\DiagnosticSourceInstrumentation\PropertyFetcher.cs(92): Trim analysis warning IL2070: OpenTelemetry.Instrumentation.PropertyFetcher`1.PropertyFetch.Create(TypeInfo,String): 'this' argument does not satisfy 'DynamicallyAccessedMemberTypes.PublicProperties', 'DynamicallyAccessedMemberTypes.NonPublicProperties' in call to 'System.Reflection.TypeInfo.DeclaredProperties.get'. The parameter 'type' of method 'OpenTelemetry.Instrumentation.PropertyFetcher`1.PropertyFetch.Create(TypeInfo,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. [C:\repos\opentelemetry-dotnet\test\OpenTelemetry.AotCompatibility.TestApp\OpenTelemetry.AotCompatibility.TestApp.csproj] C:\repos\opentelemetry-dotnet\src\OpenTelemetry\DiagnosticSourceInstrumentation\PropertyFetcher.cs(95): Trim analysis warning IL2070: OpenTelemetry.Instrumentation.PropertyFetcher`1.PropertyFetch.Create(TypeInfo,String): 'this' argument does not satisfy 'DynamicallyAccessedMemberTypes.PublicProperties' in call to 'System.Type.GetProperty(String)'. The parameter 'type' of method 'OpenTelemetry.Instrumentation.PropertyFetcher`1.PropertyFetch.Create(TypeInfo,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. [C:\repos\opentelemetry-dotnet\test\OpenTelemetry.AotCompatibility.TestApp\OpenTelemetry.AotCompatibility.TestApp.csproj] C:\repos\opentelemetry-dotnet\src\OpenTelemetry\DiagnosticSourceInstrumentation\PropertyFetcher.cs(109): AOT analysis warning IL3050: OpenTelemetry.Instrumentation.PropertyFetcher`1.PropertyFetch.g__CreateFetcherForProperty|0_1(PropertyInfo): 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. [C:\repos\opentelemetry-dotnet\test\OpenTelemetry.AotCompatibility.TestApp\OpenTelemetry.AotCompatibility.TestApp.csproj] C:\repos\opentelemetry-dotnet\src\OpenTelemetry\Logs\OpenTelemetryLoggingExtensions.cs(64): Trim analysis warning IL2026: Microsoft.Extensions.Logging.OpenTelemetryLoggingExtensions.AddOpenTelemetry(ILoggingBuilder,Action`1): Using member 'Microsoft.Extensions.Logging.Configuration.LoggerProviderOptions.RegisterProviderOptions(IServiceCollection)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. TOptions's dependent types may have their members trimmed. Ensure all required members are preserved. [C:\repos\opentelemetry-dotnet\test\OpenTelemetry.AotCompatibility.TestApp\OpenTelemetry.AotCompatibility.TestApp.csproj] C:\repos\opentelemetry-dotnet\src\OpenTelemetry\Logs\OpenTelemetryLoggingExtensions.cs(64): AOT analysis warning IL3050: Microsoft.Extensions.Logging.OpenTelemetryLoggingExtensions.AddOpenTelemetry(ILoggingBuilder,Action`1): Using member 'Microsoft.Extensions.Logging.Configuration.LoggerProviderOptions.RegisterProviderOptions(IServiceCollection)' which has 'RequiresDynamicCodeAttribute' can break functionality when AOT compiling. Binding TOptions to configuration values may require generating dynamic code at runtime. [C:\repos\opentelemetry-dotnet\test\OpenTelemetry.AotCompatibility.TestApp\OpenTelemetry.AotCompatibility.TestApp.csproj] C:\repos\opentelemetry-dotnet\src\OpenTelemetry\Trace\Builder\TracerProviderBuilderBase.cs(174): AOT analysis warning IL3050: OpenTelemetry.Trace.TracerProviderBuilderBase.Build(): Using member 'Microsoft.Extensions.DependencyInjection.ServiceCollectionContainerBuilderExtensions.BuildServiceProvider(IServiceCollection,Boolean)' which has 'RequiresDynamicCodeAttribute' can break functionality when AOT compiling. Using Microsoft.Extensions.DependencyInjection requires generating code dynamically at runtime. For example, when using enumerable and generic ValueType services. [C:\repos\opentelemetry-dotnet\test\OpenTelemetry.AotCompatibility.TestApp\OpenTelemetry.AotCompatibility.TestApp.csproj] C:\repos\opentelemetry-dotnet\src\OpenTelemetry\Logs\OpenTelemetryLogger.cs(161): Trim analysis warning IL2026: OpenTelemetry.Logs.OpenTelemetryLogger.ProcessState(LogRecord,LogRecordILoggerData&,!!0&,Boolean): Using member 'System.ComponentModel.TypeDescriptor.GetProperties(Object)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. PropertyDescriptor's PropertyType cannot be statically discovered. The Type of component cannot be statically discovered. [C:\repos\opentelemetry-dotnet\test\OpenTelemetry.AotCompatibility.TestApp\OpenTelemetry.AotCompatibility.TestApp.csproj] C:\repos\opentelemetry-dotnet\src\OpenTelemetry\Metrics\Builder\MeterProviderBuilderBase.cs(130): AOT analysis warning IL3050: OpenTelemetry.Metrics.MeterProviderBuilderBase.Build(): Using member 'Microsoft.Extensions.DependencyInjection.ServiceCollectionContainerBuilderExtensions.BuildServiceProvider(IServiceCollection,Boolean)' which has 'RequiresDynamicCodeAttribute' can break functionality when AOT compiling. Using Microsoft.Extensions.DependencyInjection requires generating code dynamically at runtime. For example, when using enumerable and generic ValueType services. [C:\repos\opentelemetry-dotnet\test\OpenTelemetry.AotCompatibility.TestApp\OpenTelemetry.AotCompatibility.TestApp.csproj] C:\repos\opentelemetry-dotnet\src\OpenTelemetry.Api\Context\RuntimeContext.cs(52): Trim analysis warning IL2055: OpenTelemetry.Context.RuntimeContext.RegisterSlot(String): 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. [C:\repos\opentelemetry-dotnet\test\OpenTelemetry.AotCompatibility.TestApp\OpenTelemetry.AotCompatibility.TestApp.csproj] C:\repos\opentelemetry-dotnet\src\OpenTelemetry.Api\Context\RuntimeContext.cs(52): AOT analysis warning IL3050: OpenTelemetry.Context.RuntimeContext.RegisterSlot(String): 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. [C:\repos\opentelemetry-dotnet\test\OpenTelemetry.AotCompatibility.TestApp\OpenTelemetry.AotCompatibility.TestApp.csproj] C:\repos\opentelemetry-dotnet\src\OpenTelemetry.Api\Context\RuntimeContext.cs(53): Trim analysis warning IL2075: OpenTelemetry.Context.RuntimeContext.RegisterSlot(String): 'this' argument does not satisfy 'DynamicallyAccessedMemberTypes.PublicConstructors' in call to 'System.Type.GetConstructor(Type[])'. The return value of method 'OpenTelemetry.Context.RuntimeContext.ContextSlotType.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. [C:\repos\opentelemetry-dotnet\test\OpenTelemetry.AotCompatibility.TestApp\OpenTelemetry.AotCompatibility.TestApp.csproj] C:\repos\opentelemetry-dotnet\src\OpenTelemetry\Internal\Options\ConfigurationExtensions.cs(48): Trim analysis warning IL2026: OpenTelemetry.Internal.ConfigurationExtensions.TryGetStringValue(IConfiguration,String,String&): Using member 'Microsoft.Extensions.Configuration.ConfigurationBinder.GetValue(IConfiguration,String,String)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. In case the type is non-primitive, the trimmer cannot statically analyze the object's type so its members may be trimmed. [C:\repos\opentelemetry-dotnet\test\OpenTelemetry.AotCompatibility.TestApp\OpenTelemetry.AotCompatibility.TestApp.csproj] C:\repos\opentelemetry-dotnet\src\OpenTelemetry\Internal\ActivityInstrumentationHelper.cs(32): Trim analysis warning IL2026: OpenTelemetry.Instrumentation.ActivityInstrumentationHelper.CreateActivitySourceSetter(): Using member 'System.Linq.Expressions.Expression.Property(Expression,String)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Creating Expressions requires unreferenced code because the members being referenced by the Expression may be trimmed. [C:\repos\opentelemetry-dotnet\test\OpenTelemetry.AotCompatibility.TestApp\OpenTelemetry.AotCompatibility.TestApp.csproj] C:\repos\opentelemetry-dotnet\src\OpenTelemetry\Internal\ActivityInstrumentationHelper.cs(40): Trim analysis warning IL2026: OpenTelemetry.Instrumentation.ActivityInstrumentationHelper.CreateActivityKindSetter(): Using member 'System.Linq.Expressions.Expression.Property(Expression,String)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Creating Expressions requires unreferenced code because the members being referenced by the Expression may be trimmed. [C:\repos\opentelemetry-dotnet\test\OpenTelemetry.AotCompatibility.TestApp\OpenTelemetry.AotCompatibility.TestApp.csproj] C:\repos\opentelemetry-dotnet\src\OpenTelemetry\DiagnosticSourceInstrumentation\PropertyFetcher.cs(92): Trim analysis warning IL2070: OpenTelemetry.Instrumentation.PropertyFetcher`1.PropertyFetch.Create(TypeInfo,String): 'this' argument does not satisfy 'DynamicallyAccessedMemberTypes.PublicProperties', 'DynamicallyAccessedMemberTypes.NonPublicProperties' in call to 'System.Reflection.TypeInfo.DeclaredProperties.get'. The parameter 'type' of method 'OpenTelemetry.Instrumentation.PropertyFetcher`1.PropertyFetch.Create(TypeInfo,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. [C:\repos\opentelemetry-dotnet\test\OpenTelemetry.AotCompatibility.TestApp\OpenTelemetry.AotCompatibility.TestApp.csproj] C:\repos\opentelemetry-dotnet\src\OpenTelemetry\DiagnosticSourceInstrumentation\PropertyFetcher.cs(95): Trim analysis warning IL2070: OpenTelemetry.Instrumentation.PropertyFetcher`1.PropertyFetch.Create(TypeInfo,String): 'this' argument does not satisfy 'DynamicallyAccessedMemberTypes.PublicProperties' in call to 'System.Type.GetProperty(String)'. The parameter 'type' of method 'OpenTelemetry.Instrumentation.PropertyFetcher`1.PropertyFetch.Create(TypeInfo,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. [C:\repos\opentelemetry-dotnet\test\OpenTelemetry.AotCompatibility.TestApp\OpenTelemetry.AotCompatibility.TestApp.csproj] C:\repos\opentelemetry-dotnet\src\OpenTelemetry\DiagnosticSourceInstrumentation\PropertyFetcher.cs(109): AOT analysis warning IL3050: OpenTelemetry.Instrumentation.PropertyFetcher`1.PropertyFetch.g__CreateFetcherForProperty|0_1(PropertyInfo): 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. [C:\repos\opentelemetry-dotnet\test\OpenTelemetry.AotCompatibility.TestApp\OpenTelemetry.AotCompatibility.TestApp.csproj] ILC : Trim analysis warning IL2026: Microsoft.Extensions.DependencyInjection.ServiceDescriptor.Singleton,LoggerProviderConfigureOptions`2>(): Using member 'Microsoft.Extensions.Logging.Configuration.LoggerProviderConfigureOptions`2.LoggerProviderConfigureOptions`2(ILoggerProviderConfiguration`1)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. TOptions's dependent types may have their members trimmed. Ensure all required members are preserved. [C:\repos\opentelemetry-dotnet\test\OpenTelemetry.AotCompatibility.TestApp\OpenTelemetry.AotCompatibility.TestApp.csproj] ILC : Trim analysis warning IL2026: Microsoft.Extensions.DependencyInjection.ServiceDescriptor.Describe,LoggerProviderConfigureOptions`2>(ServiceLifetime): Using member 'Microsoft.Extensions.Logging.Configuration.LoggerProviderConfigureOptions`2.LoggerProviderConfigureOptions`2(ILoggerProviderConfiguration`1)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. TOptions's dependent types may have their members trimmed. Ensure all required members are preserved. [C:\repos\opentelemetry-dotnet\test\OpenTelemetry.AotCompatibility.TestApp\OpenTelemetry.AotCompatibility.TestApp.csproj] /_/src/libraries/System.Linq.Expressions/src/System/Linq/Expressions/Interpreter/ArrayOperations.cs(23): AOT analysis warning IL3050: System.Linq.Expressions.Interpreter.NewArrayInitInstruction.Run(InterpretedFrame): 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. [C:\repos\opentelemetry-dotnet\test\OpenTelemetry.AotCompatibility.TestApp\OpenTelemetry.AotCompatibility.TestApp.csproj] /_/src/libraries/System.Linq.Expressions/src/System/Linq/Expressions/Interpreter/ArrayOperations.cs(52): AOT analysis warning IL3050: System.Linq.Expressions.Interpreter.NewArrayInstruction.Run(InterpretedFrame): 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. [C:\repos\opentelemetry-dotnet\test\OpenTelemetry.AotCompatibility.TestApp\OpenTelemetry.AotCompatibility.TestApp.csproj] /_/src/libraries/System.Linq.Expressions/src/System/Linq/Expressions/Interpreter/ArrayOperations.cs(87): AOT analysis warning IL3050: System.Linq.Expressions.Interpreter.NewArrayBoundsInstruction.Run(InterpretedFrame): 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. [C:\repos\opentelemetry-dotnet\test\OpenTelemetry.AotCompatibility.TestApp\OpenTelemetry.AotCompatibility.TestApp.csproj] /_/src/libraries/System.Linq.Expressions/src/System/Dynamic/Utils/TypeUtils.cs(28): AOT analysis warning IL3050: System.Dynamic.Utils.TypeUtils.GetNullableType(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. [C:\repos\opentelemetry-dotnet\test\OpenTelemetry.AotCompatibility.TestApp\OpenTelemetry.AotCompatibility.TestApp.csproj] /_/src/libraries/System.Linq.Expressions/src/System/Linq/Expressions/NewArrayExpression.cs(228): AOT analysis warning IL3050: System.Linq.Expressions.Expression.NewArrayBounds(Type,IEnumerable`1): Using member 'System.Type.MakeArrayType()' which has 'RequiresDynamicCodeAttribute' can break functionality when AOT compiling. The code for an array of the specified type might not be available. [C:\repos\opentelemetry-dotnet\test\OpenTelemetry.AotCompatibility.TestApp\OpenTelemetry.AotCompatibility.TestApp.csproj] /_/src/libraries/System.Linq.Expressions/src/System/Linq/Expressions/NewArrayExpression.cs(232): AOT analysis warning IL3050: System.Linq.Expressions.Expression.NewArrayBounds(Type,IEnumerable`1): Using member 'System.Type.MakeArrayType(Int32)' which has 'RequiresDynamicCodeAttribute' can break functionality when AOT compiling. The code for an array of the specified type might not be available. [C:\repos\opentelemetry-dotnet\test\OpenTelemetry.AotCompatibility.TestApp\OpenTelemetry.AotCompatibility.TestApp.csproj] /_/src/libraries/System.Linq.Expressions/src/System/Linq/Expressions/NewArrayExpression.cs(172): AOT analysis warning IL3050: System.Linq.Expressions.Expression.NewArrayInit(Type,IEnumerable`1): Using member 'System.Type.MakeArrayType()' which has 'RequiresDynamicCodeAttribute' can break functionality when AOT compiling. The code for an array of the specified type might not be available. [C:\repos\opentelemetry-dotnet\test\OpenTelemetry.AotCompatibility.TestApp\OpenTelemetry.AotCompatibility.TestApp.csproj] /_/src/libraries/System.Linq.Expressions/src/System/Linq/Expressions/BinaryExpression.cs(2239): AOT analysis warning IL3050: System.Linq.Expressions.Expression.GetResultTypeOfShift(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. [C:\repos\opentelemetry-dotnet\test\OpenTelemetry.AotCompatibility.TestApp\OpenTelemetry.AotCompatibility.TestApp.csproj] /_/src/libraries/System.Linq.Expressions/src/System/Linq/Expressions/MethodCallExpression.cs(1379): AOT analysis warning IL3050: System.Linq.Expressions.Expression.ApplyTypeArgs(MethodInfo,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. [C:\repos\opentelemetry-dotnet\test\OpenTelemetry.AotCompatibility.TestApp\OpenTelemetry.AotCompatibility.TestApp.csproj] ILC : AOT analysis warning IL3050: Microsoft.Extensions.Internal.PropertyHelper.MakeFastPropertyGetter(Type,MethodInfo,MethodInfo): 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. [C:\repos\opentelemetry-dotnet\test\OpenTelemetry.AotCompatibility.TestApp\OpenTelemetry.AotCompatibility.TestApp.csproj] ILC : AOT analysis warning IL3050: Microsoft.Extensions.Internal.PropertyHelper.MakeFastPropertyGetter(Type,MethodInfo,MethodInfo): 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. [C:\repos\opentelemetry-dotnet\test\OpenTelemetry.AotCompatibility.TestApp\OpenTelemetry.AotCompatibility.TestApp.csproj] Creating library bin\Debug\net7.0\win-x64\native\OpenTelemetry.AotCompatibility.TestApp.lib and object bin\Debug\net7.0\win-x64\native\OpenTelemetry.AotCompatibility.TestApp.exp OpenTelemetry.AotCompatibility.TestApp -> C:\repos\opentelemetry-dotnet\test\OpenTelemetry.AotCompatibility.TestApp\bin\Debug\net7.0\win-x64\publish\