Warn on method access in Requires analyzers #110086
+61
−55
Open
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
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.
Loading