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 / dotnet-linker-tests (Build windows-x64 release Runtime_Release) failed Nov 22, 2024 in 28m 13s

Build windows-x64 release Runtime_Release 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 / dotnet-linker-tests (Build windows-x64 release Runtime_Release)

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.