dotnet format
raises native AOT warnings regardless of <EnableConfigurationBindingGenerator/>
#45054
Labels
dotnet format
raises native AOT warnings regardless of <EnableConfigurationBindingGenerator/>
#45054
Describe the bug
In a native AOT project that uses configuration binding with
<EnableConfigurationBindingGenerator/>
, there should be no warnings on the use of configuration binding methods likeOptionsBuilderConfigurationExtensions.BindConfiguration
ConfigurationBinder.GetValue<T>
.However,
dotnet format
continues to raise IL2026 and IL3050 on such projects.To Reproduce
dotnet build
&dotnet publish
& IDEs don't raise any warnings as expected.However,
dotnet format --verify-no-changes
returns with exit code 2 and the following output:Further technical details
dotnet --info
output:IDE: VS Code 1.95.3 + C# extension v2.57.28
The text was updated successfully, but these errors were encountered: