Warn on method access in Requires analyzers #110086
+61
−55
Open
Azure Pipelines / runtime-dev-innerloop
failed
Nov 22, 2024 in 43m 5s
Build #20241122.30 failed
Annotations
azure-pipelines / runtime-dev-innerloop
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.
azure-pipelines / runtime-dev-innerloop
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