Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add trim annotations to System.Configuration.ConfigurationManager #108464

Closed
wants to merge 7 commits into from

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 / runtime (Build windows-arm64 Release NativeAOT_Libraries) failed Oct 18, 2024 in 26m 17s

Build windows-arm64 Release NativeAOT_Libraries 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 / runtime (Build windows-arm64 Release NativeAOT_Libraries)

/_/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 / runtime (Build windows-arm64 Release NativeAOT_Libraries)

/_/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.