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.
Build Analysis / Build Analysis failed Oct 18, 2024 in 0s

.NET Result Analysis

Details

Tip

To unconditionally bypass the build analysis check (turn it green), you can use the escape mechanism feature. The completion time may vary, potentially taking several minutes, depending on the build analysis workload at the moment.

⚠️ The following pipeline(s) will not be analyzed as has been explicited excluded from analysis

Known Repository Errors

Known Infrastructure Errors

Build Failures

runtime-dev-innerloop / Build / linux-x64 debug Libraries_AllConfigurations / Build product

[ 🚧 Report infrastructure issue] [ 📄 Report repository issue]
    ❌.packages/microsoft.dotnet.apicompat.task/10.0.100-alpha.1.24480.5/build/Microsoft.DotNet.ApiCompat.ValidateAssemblies.Common.targets(16,5): error : API compatibility errors between 'ref/net10.0/System.Configuration.ConfigurationManager.dll' (left) and 'lib/net10.0/System.Configuration.ConfigurationManager.dll' (right):
    ❌.packages/microsoft.dotnet.apicompat.task/10.0.100-alpha.1.24480.5/build/Microsoft.DotNet.ApiCompat.ValidateAssemblies.Common.targets(16,5): error CP0016: Cannot add attribute 'System.Diagnostics.CodeAnalysis.RequiresUnreferencedCodeAttribute("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.")' to 'System.Configuration.ApplicationSettingsBase'.
    ❌.packages/microsoft.dotnet.apicompat.task/10.0.100-alpha.1.24480.5/build/Microsoft.DotNet.ApiCompat.ValidateAssemblies.Common.targets(16,5): error CP0016: Cannot add attribute 'System.Diagnostics.CodeAnalysis.RequiresUnreferencedCodeAttribute("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.")' to 'System.Configuration.AppSettingsReader.AppSettingsReader()'.

runtime-dev-innerloop / Build / Source-Build (Linux_x64) / Build

[ 🚧 Report infrastructure issue] [ 📄 Report repository issue]
    ❌.packages/microsoft.dotnet.arcade.sdk/10.0.0-beta.24515.3/tools/SourceBuild/SourceBuildArcadeBuild.targets(130,5): error MSB3073: The command "./build.sh --arch x64 --configuration Release --allconfigurations --verbosity minimal --nodereuse false --warnAsError false --outputrid linux-x64 /p:AdditionalRuntimeIdentifierParent= /p:DotNetBuildRepo=true /p:ContinuousIntegrationBuild=true /p:GitHubRepositoryName=runtime --cmakeargs -DCLR_CMAKE_USE_SYSTEM_BROTLI=true /p:DotNetBuildInnerRepo=true /p:DotNetBuildSourceOnly=true /p:RepoRoot="/__w/1/s/artifacts/sb/src/" /p:ArtifactsDir="/__w/1/s/artifacts/sb/src/artifacts/" /bl:"/__w/1/s/artifacts/sb/src/artifacts/log/Release/source-inner-build.binlog" /p:ContinuousIntegrationBuild=true /p:SourceBuildOutputDir="/__w/1/s/artifacts/sb/" /p:FullAssemblySigningSupported=false /p:DotNetPublishUsingPipelines=true /p:GitHubRepositoryName=runtime" exited with code 1.

runtime / Build / windows-arm64 Debug AllSubsets_CoreCLR_ReleaseRuntimeLibs / Build product

[ 🚧 Report infrastructure issue] [ 📄 Report repository issue]
    ❌/_/src/libraries/System.Data.OleDb/src/OleDbConnectionFactory.cs(56,13): error IL2026: 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.
    ❌/_/src/libraries/System.DirectoryServices.AccountManagement/src/System/DirectoryServices/AccountManagement/GlobalConfig.cs(21,9): error IL2026: 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.

5 other jobs are failing and were not displayed due to space limitations.
Builds with failures: [runtime-dev-innerloop] [runtime]

Known test errors

Was this helpful? Yes No