Skip to content

Add Compile items

b3cba23
Select commit
Loading
Failed to load commit list.
Closed

Add trim annotations to System.Configuration.ConfigurationManager #108464

Add Compile items
b3cba23
Select commit
Loading
Failed to load commit list.
Azure Pipelines / dotnet-linker-tests (Build windows-x64 release Runtime_Release) failed May 29, 2025 in 30m 8s

Build windows-x64 release Runtime_Release failed

Annotations

Check failure on line 56 in /_/src/libraries/System.Data.OleDb/src/OleDbConnectionFactory.cs

See this annotation in the file changed.

@azure-pipelines azure-pipelines / dotnet-linker-tests (Build windows-x64 release Runtime_Release)

/_/src/libraries/System.Data.OleDb/src/OleDbConnectionFactory.cs#L56

/_/src/libraries/System.Data.OleDb/src/OleDbConnectionFactory.cs(56,13): error IL2026: (NETCORE_ENGINEERING_TELEMETRY=Build) System.Data.OleDb.OleDbConnectionFactory.CreateMetaDataFactory(DbConnectionInternal, Boolean&): Using member 'System.Configuration.ConfigurationManager.GetSection(String)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. System.Configuration.ConfigurationManager relies on reflection-based serialization. Required types may be removed when trimming. Consider using Microsoft.Extensions.Configuration and the configuration-binding source generator instead.

Check failure on line 21 in /_/src/libraries/System.DirectoryServices.AccountManagement/src/System/DirectoryServices/AccountManagement/GlobalConfig.cs

See this annotation in the file changed.

@azure-pipelines azure-pipelines / dotnet-linker-tests (Build windows-x64 release Runtime_Release)

/_/src/libraries/System.DirectoryServices.AccountManagement/src/System/DirectoryServices/AccountManagement/GlobalConfig.cs#L21

/_/src/libraries/System.DirectoryServices.AccountManagement/src/System/DirectoryServices/AccountManagement/GlobalConfig.cs(21,9): error IL2026: (NETCORE_ENGINEERING_TELEMETRY=Build) System.DirectoryServices.AccountManagement.GlobalConfig..cctor(): Using member 'System.Configuration.ConfigurationManager.GetSection(String)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. System.Configuration.ConfigurationManager relies on reflection-based serialization. Required types may be removed when trimming. Consider using Microsoft.Extensions.Configuration and the configuration-binding source generator instead.