Skip to content

[wasm] Tests failing to build with trimming #73901

Closed
@radical

Description

@radical

Rolling build:

IL2121, and IL2104:

/_/src/libraries/Common/src/System/Net/Logging/NetEventSource.Common.cs(379,13): Trim analysis error IL2121: System.Net.NetEventSource.WriteEvent(Int32, String, String, String, String): Unused 'UnconditionalSuppressMessageAttribute' for warning 'IL2026'. Consider removing the unused warning suppression. 
/_/src/libraries/Common/src/System/Net/Logging/NetEventSource.Common.cs(425,13): Trim analysis error IL2121: System.Net.NetEventSource.WriteEvent(Int32, String, String, Byte[]): Unused 'UnconditionalSuppressMessageAttribute' for warning 'IL2026'. Consider removing the unused warning suppression. 
/_/src/libraries/Common/src/System/Net/Logging/NetEventSource.Common.cs(470,13): Trim analysis error IL2121: System.Net.NetEventSource.WriteEvent(Int32, String, Int32, Int32, Int32): Unused 'UnconditionalSuppressMessageAttribute' for warning 'IL2026'. Consider removing the unused warning suppression. 
/_/src/libraries/Common/src/System/Net/Logging/NetEventSource.Common.cs(510,13): Trim analysis error IL2121: System.Net.NetEventSource.WriteEvent(Int32, String, Int32, String): Unused 'UnconditionalSuppressMessageAttribute' for warning 'IL2026'. Consider removing the unused warning suppression. 
/_/src/libraries/Common/src/System/Net/Logging/NetEventSource.Common.cs(547,13): Trim analysis error IL2121: System.Net.NetEventSource.WriteEvent(Int32, String, String, Int32): Unused 'UnconditionalSuppressMessageAttribute' for warning 'IL2026'. Consider removing the unused warning suppression. 
/_/src/libraries/Common/src/System/Net/Logging/NetEventSource.Common.cs(584,13): Trim analysis error IL2121: System.Net.NetEventSource.WriteEvent(Int32, String, String, String, Int32): Unused 'UnconditionalSuppressMessageAttribute' for warning 'IL2026'. Consider removing the unused warning suppression. 
/_/src/libraries/Common/src/System/Net/Logging/NetEventSource.Common.cs(628,13): Trim analysis error IL2121: System.Net.NetEventSource.WriteEvent(Int32, String, Int32, Int32, Int32, Int32, Int32, Int32, Int32): Unused 'UnconditionalSuppressMessageAttribute' for warning 'IL2026'. Consider removing the unused warning suppression. 
/_/src/libraries/Common/src/System/Net/Logging/NetEventSource.Common.cs(688,13): Trim analysis error IL2121: System.Net.NetEventSource.WriteEvent(Int32, String, String, Int32, Int32, Int32): Unused 'UnconditionalSuppressMessageAttribute' for warning 'IL2026'. Consider removing the unused warning suppression. 

/__w/1/s/artifacts/bin/microsoft.netcore.app.runtime.browser-wasm/Release/runtimes/browser-wasm/lib/net7.0/System.ComponentModel.TypeConverter.dll : error IL2104: Assembly 'System.ComponentModel.TypeConverter' produced trim warnings. For more information see https://aka.ms/dotnet-illink/libraries 
/__w/1/s/artifacts/bin/microsoft.netcore.app.runtime.browser-wasm/Release/runtimes/browser-wasm/lib/net7.0/System.Linq.Expressions.dll : error IL2104: Assembly 'System.Linq.Expressions' produced trim warnings. For more information see https://aka.ms/dotnet-illink/libraries 
/__w/1/s/artifacts/bin/microsoft.netcore.app.runtime.browser-wasm/Release/runtimes/browser-wasm/lib/net7.0/System.Runtime.InteropServices.JavaScript.dll : error IL2104: Assembly 'System.Runtime.InteropServices.JavaScript' produced trim warnings. For more information see https://aka.ms/dotnet-illink/libraries 
/__w/1/s/artifacts/bin/microsoft.netcore.app.runtime.browser-wasm/Release/runtimes/browser-wasm/native/System.Private.CoreLib.dll : error IL2104: Assembly 'System.Private.CoreLib' produced trim warnings. For more information see https://aka.ms/dotnet-illink/libraries 
/__w/1/s/.dotnet/sdk/7.0.100-preview.5.22307.18/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.ILLink.targets(110,5): error NETSDK1144: Optimizing assemblies for size failed. Optimization can be disabled by setting the PublishTrimmed property to false. 
/__w/1/s/artifacts/bin/microsoft.netcore.app.runtime.browser-wasm/Release/runtimes/browser-wasm/lib/net7.0/System.ComponentModel.TypeConverter.dll : error IL2104: Assembly 'System.ComponentModel.TypeConverter' produced trim warnings. For more information see https://aka.ms/dotnet-illink/libraries 
/__w/1/s/artifacts/bin/microsoft.netcore.app.runtime.browser-wasm/Release/runtimes/browser-wasm/lib/net7.0/System.Linq.Expressions.dll : error IL2104: Assembly 'System.Linq.Expressions' produced trim warnings. For more information see https://aka.ms/dotnet-illink/libraries 
/__w/1/s/artifacts/bin/microsoft.netcore.app.runtime.browser-wasm/Release/runtimes/browser-wasm/lib/net7.0/System.Runtime.InteropServices.JavaScript.dll : error IL2104: Assembly 'System.Runtime.InteropServices.JavaScript' produced trim warnings. For more information see https://aka.ms/dotnet-illink/libraries 
/__w/1/s/artifacts/bin/microsoft.netcore.app.runtime.browser-wasm/Release/runtimes/browser-wasm/native/System.Private.CoreLib.dll : error IL2104: Assembly 'System.Private.CoreLib' produced trim warnings. For more information see https://aka.ms/dotnet-illink/libraries 

Metadata

Metadata

Assignees

Labels

arch-wasmWebAssembly architectureblocking-clean-ciBlocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms'trimming-for-aot`EnableAggressiveTrimming=true` used for running tests with AOT

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions