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

Warn on method access in Requires analyzers #110086

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Warn on method access in Requires analyzers

a50a59c
Select commit
Loading
Failed to load commit list.
Open

Warn on method access in Requires analyzers #110086

Warn on method access in Requires analyzers
a50a59c
Select commit
Loading
Failed to load commit list.
Azure Pipelines / runtime-dev-innerloop (Build windows-x86 release MSBuild_CMake) failed Nov 22, 2024 in 38m 26s

Build windows-x86 release MSBuild_CMake failed

Annotations

Check failure on line 33 in src\libraries\Microsoft.Extensions.Logging.Configuration\src\LoggerFilterConfigureOptions.cs

See this annotation in the file changed.

@azure-pipelines azure-pipelines / runtime-dev-innerloop (Build windows-x86 release MSBuild_CMake)

src\libraries\Microsoft.Extensions.Logging.Configuration\src\LoggerFilterConfigureOptions.cs#L33

src\libraries\Microsoft.Extensions.Logging.Configuration\src\LoggerFilterConfigureOptions.cs(33,37): error IL2026: (NETCORE_ENGINEERING_TELEMETRY=Build) Using member 'Microsoft.Extensions.Configuration.ConfigurationBinder.GetValue<T>(IConfiguration, String, T)' 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.