question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Performance] Long NativeAOT builds on Benchmarks.csproj

See original GitHub issue

It takes more than 8 minutes to build a medium sized application in NativeAoT compared to 15s without (both as self-contained).

Project

https://github.com/aspnet/Benchmarks/tree/main/src/Benchmarks

Build command line

dotnet publish Benchmarks.csproj -c Release -o ./published /p:RestoreNoCache=true /p:PublishAot=true /p:StripSymbols=true --framework net8.0 --self-contained -r linux-x64
  • The command line is for Linux but a similar result is measured on Windows.
  • The machine has 28 cores (Citrine environment).

Build log

Command:
dotnet publish Benchmarks.csproj -c Release -o /tmp/benchmarks-agent/benchmarks-server-1/1ks3wpcb.box/benchmarks/src/Benchmarks/published /p:MicrosoftNETCoreAppPackageVersion=8.0.0-alpha.1.23067.2 /p:MicrosoftAspNetCoreAppPackageVersion=8.0.0-alpha.1.23067.1 /p:GenerateErrorForMissingTargetingPacks=false /p:RestoreNoCache=true /p:MicrosoftNETPlatformLibrary=Microsoft.NETCore.App /p:PublishAot=true /p:StripSymbols=true --framework net8.0 --self-contained -r linux-x64 
MSBuild version 17.5.0-preview-23056-01+d89d4bc91 for .NET
  Determining projects to restore...
  Restored /tmp/benchmarks-agent/benchmarks-server-1/1ks3wpcb.box/benchmarks/src/Benchmarks/Benchmarks.csproj (in 362 ms).
/tmp/benchmarks-agent/benchmarks-server-1/oeutlgv2.f1a/sdk/8.0.100-alpha.1.23063.11/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.RuntimeIdentifierInference.targets(287,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [/tmp/benchmarks-agent/benchmarks-server-1/1ks3wpcb.box/benchmarks/src/Benchmarks/Benchmarks.csproj::TargetFramework=net8.0]
/tmp/benchmarks-agent/benchmarks-server-1/1ks3wpcb.box/benchmarks/src/Benchmarks/Middleware/JsonMiddleware.cs(56,24): warning IL3050: Using member 'System.Text.Json.JsonSerializer.SerializeAsync<TValue>(Stream, TValue, JsonSerializerOptions, CancellationToken)' 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. [/tmp/benchmarks-agent/benchmarks-server-1/1ks3wpcb.box/benchmarks/src/Benchmarks/Benchmarks.csproj::TargetFramework=net8.0]
/tmp/benchmarks-agent/benchmarks-server-1/1ks3wpcb.box/benchmarks/src/Benchmarks/Middleware/JsonMiddleware.cs(56,24): warning IL2026: Using member 'System.Text.Json.JsonSerializer.SerializeAsync<TValue>(Stream, TValue, JsonSerializerOptions, CancellationToken)' 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. [/tmp/benchmarks-agent/benchmarks-server-1/1ks3wpcb.box/benchmarks/src/Benchmarks/Benchmarks.csproj::TargetFramework=net8.0]
/tmp/benchmarks-agent/benchmarks-server-1/1ks3wpcb.box/benchmarks/src/Benchmarks/Data/EfDb.cs(29,20): warning IL3050: Using member 'System.Linq.Queryable.First<TSource>(IQueryable<TSource>, Expression<Func<TSource, Boolean>>)' which has 'RequiresDynamicCodeAttribute' can break functionality when AOT compiling. Enumerating collections as IQueryable can require creating new generic types or methods, which requires creating code at runtime. This may not work when AOT compiling. [/tmp/benchmarks-agent/benchmarks-server-1/1ks3wpcb.box/benchmarks/src/Benchmarks/Benchmarks.csproj::TargetFramework=net8.0]
/tmp/benchmarks-agent/benchmarks-server-1/1ks3wpcb.box/benchmarks/src/Benchmarks/Data/EfDb.cs(54,20): warning IL3050: Using member 'System.Linq.Queryable.First<TSource>(IQueryable<TSource>, Expression<Func<TSource, Boolean>>)' which has 'RequiresDynamicCodeAttribute' can break functionality when AOT compiling. Enumerating collections as IQueryable can require creating new generic types or methods, which requires creating code at runtime. This may not work when AOT compiling. [/tmp/benchmarks-agent/benchmarks-server-1/1ks3wpcb.box/benchmarks/src/Benchmarks/Benchmarks.csproj::TargetFramework=net8.0]
/tmp/benchmarks-agent/benchmarks-server-1/1ks3wpcb.box/benchmarks/src/Benchmarks/Startup.cs(55,13): warning IL3050: Using member 'Microsoft.Extensions.DependencyInjection.OptionsConfigurationServiceCollectionExtensions.Configure<TOptions>(IServiceCollection, IConfiguration)' which has 'RequiresDynamicCodeAttribute' can break functionality when AOT compiling. Binding strongly typed objects to configuration values may require generating dynamic code at runtime. [/tmp/benchmarks-agent/benchmarks-server-1/1ks3wpcb.box/benchmarks/src/Benchmarks/Benchmarks.csproj::TargetFramework=net8.0]
/tmp/benchmarks-agent/benchmarks-server-1/1ks3wpcb.box/benchmarks/src/Benchmarks/Startup.cs(64,31): warning IL3050: Using member 'Microsoft.Extensions.Configuration.ConfigurationBinder.Get<T>(IConfiguration)' which has 'RequiresDynamicCodeAttribute' can break functionality when AOT compiling. Binding strongly typed objects to configuration values requires generating dynamic code at runtime, for example instantiating generic types. [/tmp/benchmarks-agent/benchmarks-server-1/1ks3wpcb.box/benchmarks/src/Benchmarks/Benchmarks.csproj::TargetFramework=net8.0]
/tmp/benchmarks-agent/benchmarks-server-1/1ks3wpcb.box/benchmarks/src/Benchmarks/Startup.cs(55,13): warning IL2026: Using member 'Microsoft.Extensions.DependencyInjection.OptionsConfigurationServiceCollectionExtensions.Configure<TOptions>(IServiceCollection, IConfiguration)' 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. [/tmp/benchmarks-agent/benchmarks-server-1/1ks3wpcb.box/benchmarks/src/Benchmarks/Benchmarks.csproj::TargetFramework=net8.0]
/tmp/benchmarks-agent/benchmarks-server-1/1ks3wpcb.box/benchmarks/src/Benchmarks/Startup.cs(64,31): warning IL2026: Using member 'Microsoft.Extensions.Configuration.ConfigurationBinder.Get<T>(IConfiguration)' 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. [/tmp/benchmarks-agent/benchmarks-server-1/1ks3wpcb.box/benchmarks/src/Benchmarks/Benchmarks.csproj::TargetFramework=net8.0]
  Benchmarks -> /tmp/benchmarks-agent/benchmarks-server-1/1ks3wpcb.box/benchmarks/src/Benchmarks/bin/Release/net8.0/linux-x64/Benchmarks.dll
  Generating native code
/root/.nuget/packages/microsoft.entityframeworkcore.relational/6.0.0/lib/net6.0/Microsoft.EntityFrameworkCore.Relational.dll : warning IL2104: Assembly 'Microsoft.EntityFrameworkCore.Relational' produced trim warnings. For more information see https://aka.ms/dotnet-illink/libraries [/tmp/benchmarks-agent/benchmarks-server-1/1ks3wpcb.box/benchmarks/src/Benchmarks/Benchmarks.csproj::TargetFramework=net8.0]
/root/.nuget/packages/npgsql/6.0.0/lib/net6.0/Npgsql.dll : warning IL2104: Assembly 'Npgsql' produced trim warnings. For more information see https://aka.ms/dotnet-illink/libraries [/tmp/benchmarks-agent/benchmarks-server-1/1ks3wpcb.box/benchmarks/src/Benchmarks/Benchmarks.csproj::TargetFramework=net8.0]
/root/.nuget/packages/newtonsoft.json/13.0.1/lib/netstandard2.0/Newtonsoft.Json.dll : warning IL2104: Assembly 'Newtonsoft.Json' produced trim warnings. For more information see https://aka.ms/dotnet-illink/libraries [/tmp/benchmarks-agent/benchmarks-server-1/1ks3wpcb.box/benchmarks/src/Benchmarks/Benchmarks.csproj::TargetFramework=net8.0]
/root/.nuget/packages/microsoft.aspnetcore.app.runtime.linux-x64/8.0.0-alpha.1.23067.1/runtimes/linux-x64/lib/net8.0/Microsoft.AspNetCore.Mvc.Razor.dll : warning IL2104: Assembly 'Microsoft.AspNetCore.Mvc.Razor' produced trim warnings. For more information see https://aka.ms/dotnet-illink/libraries [/tmp/benchmarks-agent/benchmarks-server-1/1ks3wpcb.box/benchmarks/src/Benchmarks/Benchmarks.csproj::TargetFramework=net8.0]
/root/.nuget/packages/microsoft.aspnetcore.app.runtime.linux-x64/8.0.0-alpha.1.23067.1/runtimes/linux-x64/lib/net8.0/Microsoft.AspNetCore.Mvc.Razor.dll : warning IL3053: Assembly 'Microsoft.AspNetCore.Mvc.Razor' produced AOT analysis warnings. [/tmp/benchmarks-agent/benchmarks-server-1/1ks3wpcb.box/benchmarks/src/Benchmarks/Benchmarks.csproj::TargetFramework=net8.0]
/root/.nuget/packages/microsoft.identity.client/4.22.0/lib/netcoreapp2.1/Microsoft.Identity.Client.dll : warning IL2104: Assembly 'Microsoft.Identity.Client' produced trim warnings. For more information see https://aka.ms/dotnet-illink/libraries [/tmp/benchmarks-agent/benchmarks-server-1/1ks3wpcb.box/benchmarks/src/Benchmarks/Benchmarks.csproj::TargetFramework=net8.0]
/root/.nuget/packages/microsoft.data.sqlclient/4.0.0/runtimes/unix/lib/netcoreapp3.1/Microsoft.Data.SqlClient.dll : warning IL2104: Assembly 'Microsoft.Data.SqlClient' produced trim warnings. For more information see https://aka.ms/dotnet-illink/libraries [/tmp/benchmarks-agent/benchmarks-server-1/1ks3wpcb.box/benchmarks/src/Benchmarks/Benchmarks.csproj::TargetFramework=net8.0]
/root/.nuget/packages/microsoft.identitymodel.tokens/6.8.0/lib/netstandard2.0/Microsoft.IdentityModel.Tokens.dll : warning IL2104: Assembly 'Microsoft.IdentityModel.Tokens' produced trim warnings. For more information see https://aka.ms/dotnet-illink/libraries [/tmp/benchmarks-agent/benchmarks-server-1/1ks3wpcb.box/benchmarks/src/Benchmarks/Benchmarks.csproj::TargetFramework=net8.0]
/root/.nuget/packages/microsoft.data.sqlite.core/6.0.0/lib/net6.0/Microsoft.Data.Sqlite.dll : warning IL2104: Assembly 'Microsoft.Data.Sqlite' produced trim warnings. For more information see https://aka.ms/dotnet-illink/libraries [/tmp/benchmarks-agent/benchmarks-server-1/1ks3wpcb.box/benchmarks/src/Benchmarks/Benchmarks.csproj::TargetFramework=net8.0]
/tmp/benchmarks-agent/benchmarks-server-1/1ks3wpcb.box/benchmarks/src/Benchmarks/Startup.cs(55): Trim analysis warning IL2026: Benchmarks.Startup.ConfigureServices(IServiceCollection): Using member 'Microsoft.Extensions.DependencyInjection.OptionsConfigurationServiceCollectionExtensions.Configure<AppSettings>(IServiceCollection,IConfiguration)' 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. [/tmp/benchmarks-agent/benchmarks-server-1/1ks3wpcb.box/benchmarks/src/Benchmarks/Benchmarks.csproj::TargetFramework=net8.0]
/tmp/benchmarks-agent/benchmarks-server-1/1ks3wpcb.box/benchmarks/src/Benchmarks/Startup.cs(55): AOT analysis warning IL3050: Benchmarks.Startup.ConfigureServices(IServiceCollection): Using member 'Microsoft.Extensions.DependencyInjection.OptionsConfigurationServiceCollectionExtensions.Configure<AppSettings>(IServiceCollection,IConfiguration)' which has 'RequiresDynamicCodeAttribute' can break functionality when AOT compiling. Binding strongly typed objects to configuration values may require generating dynamic code at runtime. [/tmp/benchmarks-agent/benchmarks-server-1/1ks3wpcb.box/benchmarks/src/Benchmarks/Benchmarks.csproj::TargetFramework=net8.0]
/tmp/benchmarks-agent/benchmarks-server-1/1ks3wpcb.box/benchmarks/src/Benchmarks/Startup.cs(64): Trim analysis warning IL2026: Benchmarks.Startup.ConfigureServices(IServiceCollection): Using member 'Microsoft.Extensions.Configuration.ConfigurationBinder.Get<AppSettings>(IConfiguration)' 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. [/tmp/benchmarks-agent/benchmarks-server-1/1ks3wpcb.box/benchmarks/src/Benchmarks/Benchmarks.csproj::TargetFramework=net8.0]
/tmp/benchmarks-agent/benchmarks-server-1/1ks3wpcb.box/benchmarks/src/Benchmarks/Startup.cs(64): AOT analysis warning IL3050: Benchmarks.Startup.ConfigureServices(IServiceCollection): Using member 'Microsoft.Extensions.Configuration.ConfigurationBinder.Get<AppSettings>(IConfiguration)' which has 'RequiresDynamicCodeAttribute' can break functionality when AOT compiling. Binding strongly typed objects to configuration values requires generating dynamic code at runtime, for example instantiating generic types. [/tmp/benchmarks-agent/benchmarks-server-1/1ks3wpcb.box/benchmarks/src/Benchmarks/Benchmarks.csproj::TargetFramework=net8.0]
/tmp/benchmarks-agent/benchmarks-server-1/1ks3wpcb.box/benchmarks/src/Benchmarks/Middleware/JsonMiddleware.cs(56): Trim analysis warning IL2026: Benchmarks.Middleware.JsonMiddleware.Invoke(HttpContext): Using member 'System.Text.Json.JsonSerializer.SerializeAsync<JsonMessage>(Stream,JsonMessage,JsonSerializerOptions,CancellationToken)' 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. [/tmp/benchmarks-agent/benchmarks-server-1/1ks3wpcb.box/benchmarks/src/Benchmarks/Benchmarks.csproj::TargetFramework=net8.0]
/tmp/benchmarks-agent/benchmarks-server-1/1ks3wpcb.box/benchmarks/src/Benchmarks/Middleware/JsonMiddleware.cs(56): AOT analysis warning IL3050: Benchmarks.Middleware.JsonMiddleware.Invoke(HttpContext): Using member 'System.Text.Json.JsonSerializer.SerializeAsync<JsonMessage>(Stream,JsonMessage,JsonSerializerOptions,CancellationToken)' 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. [/tmp/benchmarks-agent/benchmarks-server-1/1ks3wpcb.box/benchmarks/src/Benchmarks/Benchmarks.csproj::TargetFramework=net8.0]
/root/.nuget/packages/newtonsoft.json/13.0.1/lib/netstandard2.0/Newtonsoft.Json.dll : warning IL3053: Assembly 'Newtonsoft.Json' produced AOT analysis warnings. [/tmp/benchmarks-agent/benchmarks-server-1/1ks3wpcb.box/benchmarks/src/Benchmarks/Benchmarks.csproj::TargetFramework=net8.0]
/root/.nuget/packages/microsoft.aspnetcore.app.runtime.linux-x64/8.0.0-alpha.1.23067.1/runtimes/linux-x64/lib/net8.0/Microsoft.AspNetCore.Mvc.ViewFeatures.dll : warning IL2104: Assembly 'Microsoft.AspNetCore.Mvc.ViewFeatures' produced trim warnings. For more information see https://aka.ms/dotnet-illink/libraries [/tmp/benchmarks-agent/benchmarks-server-1/1ks3wpcb.box/benchmarks/src/Benchmarks/Benchmarks.csproj::TargetFramework=net8.0]
/root/.nuget/packages/microsoft.aspnetcore.app.runtime.linux-x64/8.0.0-alpha.1.23067.1/runtimes/linux-x64/lib/net8.0/Microsoft.AspNetCore.Mvc.DataAnnotations.dll : warning IL2104: Assembly 'Microsoft.AspNetCore.Mvc.DataAnnotations' produced trim warnings. For more information see https://aka.ms/dotnet-illink/libraries [/tmp/benchmarks-agent/benchmarks-server-1/1ks3wpcb.box/benchmarks/src/Benchmarks/Benchmarks.csproj::TargetFramework=net8.0]
/root/.nuget/packages/microsoft.aspnetcore.app.runtime.linux-x64/8.0.0-alpha.1.23067.1/runtimes/linux-x64/lib/net8.0/Microsoft.AspNetCore.Mvc.ViewFeatures.dll : warning IL3053: Assembly 'Microsoft.AspNetCore.Mvc.ViewFeatures' produced AOT analysis warnings. [/tmp/benchmarks-agent/benchmarks-server-1/1ks3wpcb.box/benchmarks/src/Benchmarks/Benchmarks.csproj::TargetFramework=net8.0]
/root/.nuget/packages/npgsql.entityframeworkcore.postgresql/6.0.0/lib/net6.0/Npgsql.EntityFrameworkCore.PostgreSQL.dll : warning IL3053: Assembly 'Npgsql.EntityFrameworkCore.PostgreSQL' produced AOT analysis warnings. [/tmp/benchmarks-agent/benchmarks-server-1/1ks3wpcb.box/benchmarks/src/Benchmarks/Benchmarks.csproj::TargetFramework=net8.0]
/root/.nuget/packages/npgsql.entityframeworkcore.postgresql/6.0.0/lib/net6.0/Npgsql.EntityFrameworkCore.PostgreSQL.dll : warning IL2104: Assembly 'Npgsql.EntityFrameworkCore.PostgreSQL' produced trim warnings. For more information see https://aka.ms/dotnet-illink/libraries [/tmp/benchmarks-agent/benchmarks-server-1/1ks3wpcb.box/benchmarks/src/Benchmarks/Benchmarks.csproj::TargetFramework=net8.0]
/root/.nuget/packages/npgsql/6.0.0/lib/net6.0/Npgsql.dll : warning IL3053: Assembly 'Npgsql' produced AOT analysis warnings. [/tmp/benchmarks-agent/benchmarks-server-1/1ks3wpcb.box/benchmarks/src/Benchmarks/Benchmarks.csproj::TargetFramework=net8.0]
/root/.nuget/packages/microsoft.entityframeworkcore.relational/6.0.0/lib/net6.0/Microsoft.EntityFrameworkCore.Relational.dll : warning IL3053: Assembly 'Microsoft.EntityFrameworkCore.Relational' produced AOT analysis warnings. [/tmp/benchmarks-agent/benchmarks-server-1/1ks3wpcb.box/benchmarks/src/Benchmarks/Benchmarks.csproj::TargetFramework=net8.0]
/root/.nuget/packages/microsoft.entityframeworkcore/6.0.0/lib/net6.0/Microsoft.EntityFrameworkCore.dll : warning IL3053: Assembly 'Microsoft.EntityFrameworkCore' produced AOT analysis warnings. [/tmp/benchmarks-agent/benchmarks-server-1/1ks3wpcb.box/benchmarks/src/Benchmarks/Benchmarks.csproj::TargetFramework=net8.0]
/root/.nuget/packages/microsoft.entityframeworkcore/6.0.0/lib/net6.0/Microsoft.EntityFrameworkCore.dll : warning IL2104: Assembly 'Microsoft.EntityFrameworkCore' produced trim warnings. For more information see https://aka.ms/dotnet-illink/libraries [/tmp/benchmarks-agent/benchmarks-server-1/1ks3wpcb.box/benchmarks/src/Benchmarks/Benchmarks.csproj::TargetFramework=net8.0]
/root/.nuget/packages/runtime.linux-x64.microsoft.dotnet.ilcompiler/8.0.0-alpha.1.23058.2/framework/System.Linq.Expressions.dll : warning IL3053: Assembly 'System.Linq.Expressions' produced AOT analysis warnings. [/tmp/benchmarks-agent/benchmarks-server-1/1ks3wpcb.box/benchmarks/src/Benchmarks/Benchmarks.csproj::TargetFramework=net8.0]
/root/.nuget/packages/microsoft.entityframeworkcore.abstractions/6.0.0/lib/net6.0/Microsoft.EntityFrameworkCore.Abstractions.dll : warning IL2104: Assembly 'Microsoft.EntityFrameworkCore.Abstractions' produced trim warnings. For more information see https://aka.ms/dotnet-illink/libraries [/tmp/benchmarks-agent/benchmarks-server-1/1ks3wpcb.box/benchmarks/src/Benchmarks/Benchmarks.csproj::TargetFramework=net8.0]
/root/.nuget/packages/microsoft.entityframeworkcore.abstractions/6.0.0/lib/net6.0/Microsoft.EntityFrameworkCore.Abstractions.dll : warning IL3053: Assembly 'Microsoft.EntityFrameworkCore.Abstractions' produced AOT analysis warnings. [/tmp/benchmarks-agent/benchmarks-server-1/1ks3wpcb.box/benchmarks/src/Benchmarks/Benchmarks.csproj::TargetFramework=net8.0]
/root/.nuget/packages/microsoft.aspnetcore.app.runtime.linux-x64/8.0.0-alpha.1.23067.1/runtimes/linux-x64/lib/net8.0/Microsoft.AspNetCore.Mvc.Core.dll : warning IL2104: Assembly 'Microsoft.AspNetCore.Mvc.Core' produced trim warnings. For more information see https://aka.ms/dotnet-illink/libraries [/tmp/benchmarks-agent/benchmarks-server-1/1ks3wpcb.box/benchmarks/src/Benchmarks/Benchmarks.csproj::TargetFramework=net8.0]
/root/.nuget/packages/microsoft.aspnetcore.app.runtime.linux-x64/8.0.0-alpha.1.23067.1/runtimes/linux-x64/lib/net8.0/Microsoft.AspNetCore.Mvc.Core.dll : warning IL3053: Assembly 'Microsoft.AspNetCore.Mvc.Core' produced AOT analysis warnings. [/tmp/benchmarks-agent/benchmarks-server-1/1ks3wpcb.box/benchmarks/src/Benchmarks/Benchmarks.csproj::TargetFramework=net8.0]
/root/.nuget/packages/microsoft.aspnetcore.app.runtime.linux-x64/8.0.0-alpha.1.23067.1/runtimes/linux-x64/lib/net8.0/Microsoft.AspNetCore.Mvc.Abstractions.dll : warning IL2104: Assembly 'Microsoft.AspNetCore.Mvc.Abstractions' produced trim warnings. For more information see https://aka.ms/dotnet-illink/libraries [/tmp/benchmarks-agent/benchmarks-server-1/1ks3wpcb.box/benchmarks/src/Benchmarks/Benchmarks.csproj::TargetFramework=net8.0]
/root/.nuget/packages/microsoft.aspnetcore.app.runtime.linux-x64/8.0.0-alpha.1.23067.1/runtimes/linux-x64/lib/net8.0/Microsoft.AspNetCore.Mvc.Abstractions.dll : warning IL3053: Assembly 'Microsoft.AspNetCore.Mvc.Abstractions' produced AOT analysis warnings. [/tmp/benchmarks-agent/benchmarks-server-1/1ks3wpcb.box/benchmarks/src/Benchmarks/Benchmarks.csproj::TargetFramework=net8.0]
/root/.nuget/packages/dapper/2.0.30/lib/netstandard2.0/Dapper.dll : warning IL2104: Assembly 'Dapper' produced trim warnings. For more information see https://aka.ms/dotnet-illink/libraries [/tmp/benchmarks-agent/benchmarks-server-1/1ks3wpcb.box/benchmarks/src/Benchmarks/Benchmarks.csproj::TargetFramework=net8.0]
/root/.nuget/packages/microsoft.entityframeworkcore.sqlserver/6.0.0/lib/net6.0/Microsoft.EntityFrameworkCore.SqlServer.dll : warning IL3053: Assembly 'Microsoft.EntityFrameworkCore.SqlServer' produced AOT analysis warnings. [/tmp/benchmarks-agent/benchmarks-server-1/1ks3wpcb.box/benchmarks/src/Benchmarks/Benchmarks.csproj::TargetFramework=net8.0]
/root/.nuget/packages/microsoft.entityframeworkcore.sqlserver/6.0.0/lib/net6.0/Microsoft.EntityFrameworkCore.SqlServer.dll : warning IL2104: Assembly 'Microsoft.EntityFrameworkCore.SqlServer' produced trim warnings. For more information see https://aka.ms/dotnet-illink/libraries [/tmp/benchmarks-agent/benchmarks-server-1/1ks3wpcb.box/benchmarks/src/Benchmarks/Benchmarks.csproj::TargetFramework=net8.0]
/root/.nuget/packages/system.configuration.configurationmanager/5.0.0/lib/netstandard2.0/System.Configuration.ConfigurationManager.dll : warning IL2104: Assembly 'System.Configuration.ConfigurationManager' produced trim warnings. For more information see https://aka.ms/dotnet-illink/libraries [/tmp/benchmarks-agent/benchmarks-server-1/1ks3wpcb.box/benchmarks/src/Benchmarks/Benchmarks.csproj::TargetFramework=net8.0]
/root/.nuget/packages/microsoft.identitymodel.tokens/6.8.0/lib/netstandard2.0/Microsoft.IdentityModel.Tokens.dll : warning IL3053: Assembly 'Microsoft.IdentityModel.Tokens' produced AOT analysis warnings. [/tmp/benchmarks-agent/benchmarks-server-1/1ks3wpcb.box/benchmarks/src/Benchmarks/Benchmarks.csproj::TargetFramework=net8.0]
/root/.nuget/packages/microsoft.data.sqlclient/4.0.0/runtimes/unix/lib/netcoreapp3.1/Microsoft.Data.SqlClient.dll : warning IL3053: Assembly 'Microsoft.Data.SqlClient' produced AOT analysis warnings. [/tmp/benchmarks-agent/benchmarks-server-1/1ks3wpcb.box/benchmarks/src/Benchmarks/Benchmarks.csproj::TargetFramework=net8.0]
/root/.nuget/packages/azure.core/1.6.0/lib/netstandard2.0/Azure.Core.dll : warning IL2104: Assembly 'Azure.Core' produced trim warnings. For more information see https://aka.ms/dotnet-illink/libraries [/tmp/benchmarks-agent/benchmarks-server-1/1ks3wpcb.box/benchmarks/src/Benchmarks/Benchmarks.csproj::TargetFramework=net8.0]
/root/.nuget/packages/azure.core/1.6.0/lib/netstandard2.0/Azure.Core.dll : warning IL3053: Assembly 'Azure.Core' produced AOT analysis warnings. [/tmp/benchmarks-agent/benchmarks-server-1/1ks3wpcb.box/benchmarks/src/Benchmarks/Benchmarks.csproj::TargetFramework=net8.0]
/root/.nuget/packages/microsoft.identity.client/4.22.0/lib/netcoreapp2.1/Microsoft.Identity.Client.dll : warning IL3053: Assembly 'Microsoft.Identity.Client' produced AOT analysis warnings. [/tmp/benchmarks-agent/benchmarks-server-1/1ks3wpcb.box/benchmarks/src/Benchmarks/Benchmarks.csproj::TargetFramework=net8.0]
/root/.nuget/packages/system.configuration.configurationmanager/5.0.0/lib/netstandard2.0/System.Configuration.ConfigurationManager.dll : warning IL3053: Assembly 'System.Configuration.ConfigurationManager' produced AOT analysis warnings. [/tmp/benchmarks-agent/benchmarks-server-1/1ks3wpcb.box/benchmarks/src/Benchmarks/Benchmarks.csproj::TargetFramework=net8.0]
/root/.nuget/packages/azure.identity/1.3.0/lib/netstandard2.0/Azure.Identity.dll : warning IL2104: Assembly 'Azure.Identity' produced trim warnings. For more information see https://aka.ms/dotnet-illink/libraries [/tmp/benchmarks-agent/benchmarks-server-1/1ks3wpcb.box/benchmarks/src/Benchmarks/Benchmarks.csproj::TargetFramework=net8.0]
/root/.nuget/packages/microsoft.aspnetcore.app.runtime.linux-x64/8.0.0-alpha.1.23067.1/runtimes/linux-x64/lib/net8.0/Microsoft.AspNetCore.Components.dll : warning IL2104: Assembly 'Microsoft.AspNetCore.Components' produced trim warnings. For more information see https://aka.ms/dotnet-illink/libraries [/tmp/benchmarks-agent/benchmarks-server-1/1ks3wpcb.box/benchmarks/src/Benchmarks/Benchmarks.csproj::TargetFramework=net8.0]
ILC : Trim analysis warning IL2026: Microsoft.Extensions.DependencyInjection.ServiceDescriptor.Singleton<IConfigureOptions`1<JsonConsoleFormatterOptions>,ConsoleLoggerFormatterConfigureOptions`2<JsonConsoleFormatter,JsonConsoleFormatterOptions>>(): Using member 'Microsoft.Extensions.Logging.ConsoleLoggerFormatterConfigureOptions`2<JsonConsoleFormatter,JsonConsoleFormatterOptions>.ConsoleLoggerFormatterConfigureOptions`2(ILoggerProviderConfiguration`1<ConsoleLoggerProvider>)' 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. [/tmp/benchmarks-agent/benchmarks-server-1/1ks3wpcb.box/benchmarks/src/Benchmarks/Benchmarks.csproj::TargetFramework=net8.0]
ILC : Trim analysis warning IL2026: Microsoft.Extensions.DependencyInjection.ServiceDescriptor.Describe<IConfigureOptions`1<JsonConsoleFormatterOptions>,ConsoleLoggerFormatterConfigureOptions`2<JsonConsoleFormatter,JsonConsoleFormatterOptions>>(ServiceLifetime): Using member 'Microsoft.Extensions.Logging.ConsoleLoggerFormatterConfigureOptions`2<JsonConsoleFormatter,JsonConsoleFormatterOptions>.ConsoleLoggerFormatterConfigureOptions`2(ILoggerProviderConfiguration`1<ConsoleLoggerProvider>)' 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. [/tmp/benchmarks-agent/benchmarks-server-1/1ks3wpcb.box/benchmarks/src/Benchmarks/Benchmarks.csproj::TargetFramework=net8.0]
ILC : Trim analysis warning IL2026: Microsoft.Extensions.DependencyInjection.ServiceDescriptor.Singleton<IConfigureOptions`1<ConsoleFormatterOptions>,ConsoleLoggerFormatterConfigureOptions`2<SystemdConsoleFormatter,ConsoleFormatterOptions>>(): Using member 'Microsoft.Extensions.Logging.ConsoleLoggerFormatterConfigureOptions`2<SystemdConsoleFormatter,ConsoleFormatterOptions>.ConsoleLoggerFormatterConfigureOptions`2(ILoggerProviderConfiguration`1<ConsoleLoggerProvider>)' 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. [/tmp/benchmarks-agent/benchmarks-server-1/1ks3wpcb.box/benchmarks/src/Benchmarks/Benchmarks.csproj::TargetFramework=net8.0]
ILC : Trim analysis warning IL2026: Microsoft.Extensions.DependencyInjection.ServiceDescriptor.Describe<IConfigureOptions`1<ConsoleFormatterOptions>,ConsoleLoggerFormatterConfigureOptions`2<SystemdConsoleFormatter,ConsoleFormatterOptions>>(ServiceLifetime): Using member 'Microsoft.Extensions.Logging.ConsoleLoggerFormatterConfigureOptions`2<SystemdConsoleFormatter,ConsoleFormatterOptions>.ConsoleLoggerFormatterConfigureOptions`2(ILoggerProviderConfiguration`1<ConsoleLoggerProvider>)' 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. [/tmp/benchmarks-agent/benchmarks-server-1/1ks3wpcb.box/benchmarks/src/Benchmarks/Benchmarks.csproj::TargetFramework=net8.0]
ILC : Trim analysis warning IL2026: Microsoft.Extensions.DependencyInjection.ServiceDescriptor.Singleton<IConfigureOptions`1<SimpleConsoleFormatterOptions>,ConsoleLoggerFormatterConfigureOptions`2<SimpleConsoleFormatter,SimpleConsoleFormatterOptions>>(): Using member 'Microsoft.Extensions.Logging.ConsoleLoggerFormatterConfigureOptions`2<SimpleConsoleFormatter,SimpleConsoleFormatterOptions>.ConsoleLoggerFormatterConfigureOptions`2(ILoggerProviderConfiguration`1<ConsoleLoggerProvider>)' 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. [/tmp/benchmarks-agent/benchmarks-server-1/1ks3wpcb.box/benchmarks/src/Benchmarks/Benchmarks.csproj::TargetFramework=net8.0]
ILC : Trim analysis warning IL2026: Microsoft.Extensions.DependencyInjection.ServiceDescriptor.Describe<IConfigureOptions`1<SimpleConsoleFormatterOptions>,ConsoleLoggerFormatterConfigureOptions`2<SimpleConsoleFormatter,SimpleConsoleFormatterOptions>>(ServiceLifetime): Using member 'Microsoft.Extensions.Logging.ConsoleLoggerFormatterConfigureOptions`2<SimpleConsoleFormatter,SimpleConsoleFormatterOptions>.ConsoleLoggerFormatterConfigureOptions`2(ILoggerProviderConfiguration`1<ConsoleLoggerProvider>)' 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. [/tmp/benchmarks-agent/benchmarks-server-1/1ks3wpcb.box/benchmarks/src/Benchmarks/Benchmarks.csproj::TargetFramework=net8.0]
ILC : Trim analysis warning IL2026: Microsoft.Extensions.DependencyInjection.ServiceDescriptor.Singleton<IConfigureOptions`1<ConsoleLoggerOptions>,LoggerProviderConfigureOptions`2<ConsoleLoggerOptions,ConsoleLoggerProvider>>(): Using member 'Microsoft.Extensions.Logging.Configuration.LoggerProviderConfigureOptions`2<ConsoleLoggerOptions,ConsoleLoggerProvider>.LoggerProviderConfigureOptions`2(ILoggerProviderConfiguration`1<ConsoleLoggerProvider>)' 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. [/tmp/benchmarks-agent/benchmarks-server-1/1ks3wpcb.box/benchmarks/src/Benchmarks/Benchmarks.csproj::TargetFramework=net8.0]
ILC : Trim analysis warning IL2026: Microsoft.Extensions.DependencyInjection.ServiceDescriptor.Describe<IConfigureOptions`1<ConsoleLoggerOptions>,LoggerProviderConfigureOptions`2<ConsoleLoggerOptions,ConsoleLoggerProvider>>(ServiceLifetime): Using member 'Microsoft.Extensions.Logging.Configuration.LoggerProviderConfigureOptions`2<ConsoleLoggerOptions,ConsoleLoggerProvider>.LoggerProviderConfigureOptions`2(ILoggerProviderConfiguration`1<ConsoleLoggerProvider>)' 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. [/tmp/benchmarks-agent/benchmarks-server-1/1ks3wpcb.box/benchmarks/src/Benchmarks/Benchmarks.csproj::TargetFramework=net8.0]
/root/.nuget/packages/microsoft.entityframeworkcore.sqlite.core/6.0.0/lib/net6.0/Microsoft.EntityFrameworkCore.Sqlite.dll : warning IL3053: Assembly 'Microsoft.EntityFrameworkCore.Sqlite' produced AOT analysis warnings. [/tmp/benchmarks-agent/benchmarks-server-1/1ks3wpcb.box/benchmarks/src/Benchmarks/Benchmarks.csproj::TargetFramework=net8.0]
/root/.nuget/packages/microsoft.entityframeworkcore.sqlite.core/6.0.0/lib/net6.0/Microsoft.EntityFrameworkCore.Sqlite.dll : warning IL2104: Assembly 'Microsoft.EntityFrameworkCore.Sqlite' produced trim warnings. For more information see https://aka.ms/dotnet-illink/libraries [/tmp/benchmarks-agent/benchmarks-server-1/1ks3wpcb.box/benchmarks/src/Benchmarks/Benchmarks.csproj::TargetFramework=net8.0]
/root/.nuget/packages/dapper/2.0.30/lib/netstandard2.0/Dapper.dll : warning IL3053: Assembly 'Dapper' produced AOT analysis warnings. [/tmp/benchmarks-agent/benchmarks-server-1/1ks3wpcb.box/benchmarks/src/Benchmarks/Benchmarks.csproj::TargetFramework=net8.0]
/root/.nuget/packages/microsoft.aspnetcore.mvc.newtonsoftjson/8.0.0-alpha.1.23067.1/lib/net8.0/Microsoft.AspNetCore.Mvc.NewtonsoftJson.dll : warning IL2104: Assembly 'Microsoft.AspNetCore.Mvc.NewtonsoftJson' produced trim warnings. For more information see https://aka.ms/dotnet-illink/libraries [/tmp/benchmarks-agent/benchmarks-server-1/1ks3wpcb.box/benchmarks/src/Benchmarks/Benchmarks.csproj::TargetFramework=net8.0]
/root/.nuget/packages/microsoft.aspnetcore.mvc.newtonsoftjson/8.0.0-alpha.1.23067.1/lib/net8.0/Microsoft.AspNetCore.Mvc.NewtonsoftJson.dll : warning IL3053: Assembly 'Microsoft.AspNetCore.Mvc.NewtonsoftJson' produced AOT analysis warnings. [/tmp/benchmarks-agent/benchmarks-server-1/1ks3wpcb.box/benchmarks/src/Benchmarks/Benchmarks.csproj::TargetFramework=net8.0]
/root/.nuget/packages/microsoft.aspnetcore.jsonpatch/8.0.0-alpha.1.23067.1/lib/net8.0/Microsoft.AspNetCore.JsonPatch.dll : warning IL2104: Assembly 'Microsoft.AspNetCore.JsonPatch' produced trim warnings. For more information see https://aka.ms/dotnet-illink/libraries [/tmp/benchmarks-agent/benchmarks-server-1/1ks3wpcb.box/benchmarks/src/Benchmarks/Benchmarks.csproj::TargetFramework=net8.0]
/root/.nuget/packages/microsoft.aspnetcore.jsonpatch/8.0.0-alpha.1.23067.1/lib/net8.0/Microsoft.AspNetCore.JsonPatch.dll : warning IL3053: Assembly 'Microsoft.AspNetCore.JsonPatch' produced AOT analysis warnings. [/tmp/benchmarks-agent/benchmarks-server-1/1ks3wpcb.box/benchmarks/src/Benchmarks/Benchmarks.csproj::TargetFramework=net8.0]
/root/.nuget/packages/microsoft.identitymodel.logging/6.8.0/lib/netstandard2.0/Microsoft.IdentityModel.Logging.dll : warning IL2104: Assembly 'Microsoft.IdentityModel.Logging' produced trim warnings. For more information see https://aka.ms/dotnet-illink/libraries [/tmp/benchmarks-agent/benchmarks-server-1/1ks3wpcb.box/benchmarks/src/Benchmarks/Benchmarks.csproj::TargetFramework=net8.0]
/root/.nuget/packages/microsoft.aspnetcore.app.runtime.linux-x64/8.0.0-alpha.1.23067.1/runtimes/linux-x64/lib/net8.0/Microsoft.AspNetCore.Mvc.RazorPages.dll : warning IL2104: Assembly 'Microsoft.AspNetCore.Mvc.RazorPages' produced trim warnings. For more information see https://aka.ms/dotnet-illink/libraries [/tmp/benchmarks-agent/benchmarks-server-1/1ks3wpcb.box/benchmarks/src/Benchmarks/Benchmarks.csproj::TargetFramework=net8.0]
/root/.nuget/packages/microsoft.aspnetcore.app.runtime.linux-x64/8.0.0-alpha.1.23067.1/runtimes/linux-x64/lib/net8.0/Microsoft.AspNetCore.Mvc.RazorPages.dll : warning IL3053: Assembly 'Microsoft.AspNetCore.Mvc.RazorPages' produced AOT analysis warnings. [/tmp/benchmarks-agent/benchmarks-server-1/1ks3wpcb.box/benchmarks/src/Benchmarks/Benchmarks.csproj::TargetFramework=net8.0]
/root/.nuget/packages/microsoft.aspnetcore.app.runtime.linux-x64/8.0.0-alpha.1.23067.1/runtimes/linux-x64/lib/net8.0/Microsoft.AspNetCore.Components.dll : warning IL3053: Assembly 'Microsoft.AspNetCore.Components' produced AOT analysis warnings. [/tmp/benchmarks-agent/benchmarks-server-1/1ks3wpcb.box/benchmarks/src/Benchmarks/Benchmarks.csproj::TargetFramework=net8.0]
ILC : Trim analysis warning IL2026: Microsoft.AspNetCore.Http.Json.JsonOptions.CreateDefaultTypeResolver(): Using member 'System.Text.Json.Serialization.Metadata.DefaultJsonTypeInfoResolver.DefaultJsonTypeInfoResolver()' 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. [/tmp/benchmarks-agent/benchmarks-server-1/1ks3wpcb.box/benchmarks/src/Benchmarks/Benchmarks.csproj::TargetFramework=net8.0]
/root/.nuget/packages/microsoft.aspnetcore.app.runtime.linux-x64/8.0.0-alpha.1.23067.1/runtimes/linux-x64/lib/net8.0/Microsoft.AspNetCore.Http.Extensions.dll : warning IL3053: Assembly 'Microsoft.AspNetCore.Http.Extensions' produced AOT analysis warnings. [/tmp/benchmarks-agent/benchmarks-server-1/1ks3wpcb.box/benchmarks/src/Benchmarks/Benchmarks.csproj::TargetFramework=net8.0]
/root/.nuget/packages/microsoft.aspnetcore.app.runtime.linux-x64/8.0.0-alpha.1.23067.1/runtimes/linux-x64/lib/net8.0/Microsoft.AspNetCore.Mvc.ApiExplorer.dll : warning IL2104: Assembly 'Microsoft.AspNetCore.Mvc.ApiExplorer' produced trim warnings. For more information see https://aka.ms/dotnet-illink/libraries [/tmp/benchmarks-agent/benchmarks-server-1/1ks3wpcb.box/benchmarks/src/Benchmarks/Benchmarks.csproj::TargetFramework=net8.0]
/root/.nuget/packages/microsoft.aspnetcore.app.runtime.linux-x64/8.0.0-alpha.1.23067.1/runtimes/linux-x64/lib/net8.0/Microsoft.AspNetCore.Mvc.ApiExplorer.dll : warning IL3053: Assembly 'Microsoft.AspNetCore.Mvc.ApiExplorer' produced AOT analysis warnings. [/tmp/benchmarks-agent/benchmarks-server-1/1ks3wpcb.box/benchmarks/src/Benchmarks/Benchmarks.csproj::TargetFramework=net8.0]
/root/.nuget/packages/runtime.linux-x64.microsoft.dotnet.ilcompiler/8.0.0-alpha.1.23058.2/framework/Microsoft.CSharp.dll : warning IL3053: Assembly 'Microsoft.CSharp' produced AOT analysis warnings. [/tmp/benchmarks-agent/benchmarks-server-1/1ks3wpcb.box/benchmarks/src/Benchmarks/Benchmarks.csproj::TargetFramework=net8.0]
/_/src/libraries/System.Data.Common/src/System/Data/DataTable.cs(6718): Trim analysis warning IL2026: System.Data.DataTable.System.Xml.Serialization.IXmlSerializable.WriteXml(XmlWriter): Using member 'System.Data.DataTable.WriteXmlInternal(XmlWriter)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. DataTable.WriteXml uses XmlSerialization underneath which is not trimming safe. Members from serialized types may be trimmed if not referenced directly. [/tmp/benchmarks-agent/benchmarks-server-1/1ks3wpcb.box/benchmarks/src/Benchmarks/Benchmarks.csproj::TargetFramework=net8.0]
/_/src/libraries/System.Data.Common/src/System/Data/DataSet.cs(3519): Trim analysis warning IL2026: System.Data.DataSet.System.Xml.Serialization.IXmlSerializable.WriteXml(XmlWriter): Using member 'System.Data.DataSet.WriteXmlInternal(XmlWriter)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. DataSet.WriteXml uses XmlSerialization underneath which is not trimming safe. Members from serialized types may be trimmed if not referenced directly. [/tmp/benchmarks-agent/benchmarks-server-1/1ks3wpcb.box/benchmarks/src/Benchmarks/Benchmarks.csproj::TargetFramework=net8.0]
/root/.nuget/packages/runtime.linux-x64.microsoft.dotnet.ilcompiler/8.0.0-alpha.1.23058.2/framework/System.Private.Xml.dll : warning IL3053: Assembly 'System.Private.Xml' produced AOT analysis warnings. [/tmp/benchmarks-agent/benchmarks-server-1/1ks3wpcb.box/benchmarks/src/Benchmarks/Benchmarks.csproj::TargetFramework=net8.0]
/_/src/libraries/System.Data.Common/src/System/Data/DataTable.cs(6700): Trim analysis warning IL2026: System.Data.DataTable.System.Xml.Serialization.IXmlSerializable.ReadXml(XmlReader): Using member 'System.Data.DataTable.ReadXmlSerializableInternal(XmlReader)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. DataTable.ReadXml uses XmlSerialization underneath which is not trimming safe. Members from serialized types may be trimmed if not referenced directly. [/tmp/benchmarks-agent/benchmarks-server-1/1ks3wpcb.box/benchmarks/src/Benchmarks/Benchmarks.csproj::TargetFramework=net8.0]
/_/src/libraries/System.Data.Common/src/System/Data/DataSet.cs(3497): Trim analysis warning IL2026: System.Data.DataSet.System.Xml.Serialization.IXmlSerializable.ReadXml(XmlReader): Using member 'System.Data.DataSet.ReadXmlSerializableInternal(XmlReader)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. DataSet.ReadXml uses XmlSerialization underneath which is not trimming safe. Members from serialized types may be trimmed if not referenced directly. [/tmp/benchmarks-agent/benchmarks-server-1/1ks3wpcb.box/benchmarks/src/Benchmarks/Benchmarks.csproj::TargetFramework=net8.0]
/root/.nuget/packages/microsoft.aspnetcore.app.runtime.linux-x64/8.0.0-alpha.1.23067.1/runtimes/linux-x64/lib/net8.0/Microsoft.Extensions.DependencyInjection.dll : warning IL3053: Assembly 'Microsoft.Extensions.DependencyInjection' produced AOT analysis warnings. [/tmp/benchmarks-agent/benchmarks-server-1/1ks3wpcb.box/benchmarks/src/Benchmarks/Benchmarks.csproj::TargetFramework=net8.0]
/_/src/libraries/System.Private.Xml/src/System/Xml/Serialization/ReflectionXmlSerializationReader.cs(34): Trim analysis warning IL2026: System.Xml.Serialization.ReflectionXmlSerializationReader..cctor(): Using member 'System.Xml.Serialization.TypeScope.GetTypeDesc(Type)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. calls GetTypeDesc. [/tmp/benchmarks-agent/benchmarks-server-1/1ks3wpcb.box/benchmarks/src/Benchmarks/Benchmarks.csproj::TargetFramework=net8.0]
/_/src/libraries/System.Private.Xml/src/System/Xml/Serialization/ReflectionXmlSerializationReader.cs(35): Trim analysis warning IL2026: System.Xml.Serialization.ReflectionXmlSerializationReader..cctor(): Using member 'System.Xml.Serialization.TypeScope.GetTypeDesc(Type)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. calls GetTypeDesc. [/tmp/benchmarks-agent/benchmarks-server-1/1ks3wpcb.box/benchmarks/src/Benchmarks/Benchmarks.csproj::TargetFramework=net8.0]
/_/src/libraries/System.Data.Common/src/System/Data/DataTable.cs(6664): Trim analysis warning IL2026: System.Data.DataTable.System.Xml.Serialization.IXmlSerializable.GetSchema(): Using member 'System.Data.DataTable.GetXmlSchema()' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. DataTable.GetSchema uses TypeDescriptor and XmlSerialization underneath which are not trimming safe. Members from serialized types may be trimmed if not referenced directly. [/tmp/benchmarks-agent/benchmarks-server-1/1ks3wpcb.box/benchmarks/src/Benchmarks/Benchmarks.csproj::TargetFramework=net8.0]
/_/src/libraries/System.Data.Common/src/System/Data/DataSet.cs(3463): Trim analysis warning IL2026: System.Data.DataSet.System.Xml.Serialization.IXmlSerializable.GetSchema(): Using member 'System.Data.DataSet.WriteXmlSchema(DataSet,XmlWriter)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. DataSet.GetSchema uses TypeDescriptor and XmlSerialization underneath which are not trimming safe. Members from serialized types may be trimmed if not referenced directly. [/tmp/benchmarks-agent/benchmarks-server-1/1ks3wpcb.box/benchmarks/src/Benchmarks/Benchmarks.csproj::TargetFramework=net8.0]
/root/.nuget/packages/runtime.linux-x64.microsoft.dotnet.ilcompiler/8.0.0-alpha.1.23058.2/framework/System.Private.DataContractSerialization.dll : warning IL3053: Assembly 'System.Private.DataContractSerialization' produced AOT analysis warnings. [/tmp/benchmarks-agent/benchmarks-server-1/1ks3wpcb.box/benchmarks/src/Benchmarks/Benchmarks.csproj::TargetFramework=net8.0]
ILC : Trim analysis warning IL2026: System.Security.Cryptography.Xml.CryptoHelpers.CreateFromName<T>(String): Using member 'System.Security.Cryptography.CryptoConfig.CreateFromName(String)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. The default algorithm implementations might be removed, use strong type references like 'RSA.Create()' instead. [/tmp/benchmarks-agent/benchmarks-server-1/1ks3wpcb.box/benchmarks/src/Benchmarks/Benchmarks.csproj::TargetFramework=net8.0]
/root/.nuget/packages/microsoft.aspnetcore.app.runtime.linux-x64/8.0.0-alpha.1.23067.1/runtimes/linux-x64/lib/net8.0/System.Security.Cryptography.Xml.dll : warning IL2104: Assembly 'System.Security.Cryptography.Xml' produced trim warnings. For more information see https://aka.ms/dotnet-illink/libraries [/tmp/benchmarks-agent/benchmarks-server-1/1ks3wpcb.box/benchmarks/src/Benchmarks/Benchmarks.csproj::TargetFramework=net8.0]
  Benchmarks -> /tmp/benchmarks-agent/benchmarks-server-1/1ks3wpcb.box/benchmarks/src/Benchmarks/published/
Exit code: 0

Issue Analytics

  • State:open
  • Created 8 months ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
MichalStrehovskycommented, Jan 18, 2023

(so there are no messages)

Bah I was wrong. The messages are there. They just get folded into the single “NpgSql is not compatible with AOT” warning. one <TrimmerSingleWarn>false</TrimmerSingleWarn> later, there’s a bunch of these:

AOT analysis warning IL3054: Npgsql.Internal.TypeHandlers.MultirangeHandler`1<NpgsqlRange`1<NpgsqlTid>[]>.ReadMul
tirangeArray<NpgsqlRange`1<NpgsqlTid>[]>(NpgsqlReadBuffer,Int32,Boolean,FieldDescription): Generic expansion to 'System
.Runtime.CompilerServices.AsyncValueTaskMethodBuilder`1<NpgsqlRange`1<NpgsqlRange`1<NpgsqlTid>[]>[]>.Start<<ReadMultira
ngeArray>d__5`1<NpgsqlRange`1<NpgsqlTid>[],NpgsqlRange`1<NpgsqlTid>[]>>(<ReadMultirangeArray>d__5`1<NpgsqlRange`1<Npgsq
lTid>[],NpgsqlRange`1<NpgsqlTid>[]>&)' was aborted due to generic recursion. An exception will be thrown at runtime if
this codepath is ever reached. Generic recursion also negatively affects compilation speed and the size of the compilat
ion output. It is advisable to remove the source of the generic recursion by restructuring the program around the sourc
e of recursion. The source of generic recursion might include: 'Npgsql.Internal.TypeHandling.NpgsqlTypeHandler`1', 'Npg
sql.Internal.TypeHandlers.MultirangeHandler`1', 'Npgsql.Internal.TypeHandlers.MultirangeHandler`1.<ReadMultirangeArray>
d__5`1', 'Npgsql.Internal.TypeHandlers.MultirangeHandler`1.<ReadMultirangeList>d__7`1', 'Npgsql.Internal.TypeHandlers.M
ultirangeHandler`1.<WriteMultirange>d__13`1'
0reactions
MichalStrehovskycommented, Jan 18, 2023

The messages are there. They just get folded into the single “NpgSql is not compatible with AOT” warning.

Is that correct/expected behavior? These messages aren’t warnings, and they seem different than “normal” AOT warnings. So why should they get folded into the single warning?

It feels the category is the same - it’s code that is fine when one is JIT or interpreter based, but can be problematic with AOT (it may throw exceptions at runtime and as a side effect also makes things bigger/slower to compiler). It’s an AOT warning.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Deep dive into .NET performance and native AOT | BRK205H
View the full session schedule and learn more about Microsoft Build at https:// build.microsoft.com BRK205H | English (US) | .NET # MSBuild.
Read more >
ASP.NET Core support for native AOT
The following chart shows the results of the benchmarking: Chart showing comparison of application size, memory use, and startup time metrics of ...
Read more >
With .NET 8 Native AOT will we get small single binary for ...
Yes, more or less. Real world example here: My team is rewriting a simple-ish CLI app from Go to C# using native AOT....
Read more >
Performance Improvements in .NET 7
NET 7 is fast. Really fast. This post deep-dives into hundreds of performance improvements that contributed to that reality.
Read more >
Native AOT Overview
"dotnet build" invokes "msbuild" which is a build system analogous to make. If you want a remotely peaceful life, just lay out the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found