-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Update binding generator to do case-insensitive config-key/property name matching, & make some formatting improvements #88338
Conversation
layomia
commented
Jul 3, 2023
- Fixes ConfigurationBinder Source Generator is comparing configuration keys case-sensitively #88112
- Contributes to Avoid emitting code that honors BinderOptions when not specified in binding call #88110
- Unblocks PRs Remove handwritten binding logic from Logging.Console; use generator instead #88067 & Enable configuration binding generator in TodosApi app aspnet/Benchmarks#1874
Tagging subscribers to this area: @dotnet/area-extensions-configuration Issue Details
|
…ame matching, & make some formatting improvements
...ourceGenerationTests/Microsoft.Extensions.Configuration.Binder.SourceGeneration.Tests.csproj
Outdated
Show resolved
Hide resolved
...ensions.Configuration.Binder/tests/SourceGenerationTests/Baselines/Collections.generated.txt
Outdated
Show resolved
Hide resolved
...tensions.Configuration.Binder/tests/SourceGenerationTests/Baselines/Primitives.generated.txt
Outdated
Show resolved
Hide resolved
...ensions.Configuration.Binder/tests/SourceGenerationTests/Baselines/Collections.generated.txt
Outdated
Show resolved
Hide resolved
...ensions.Configuration.Binder/tests/SourceGenerationTests/Baselines/Collections.generated.txt
Outdated
Show resolved
Hide resolved
...ensions.Configuration.Binder/tests/SourceGenerationTests/Baselines/Collections.generated.txt
Outdated
Show resolved
Hide resolved
...ensions.Configuration.Binder/tests/SourceGenerationTests/Baselines/Collections.generated.txt
Outdated
Show resolved
Hide resolved
...ensions.Configuration.Binder/tests/SourceGenerationTests/Baselines/Collections.generated.txt
Outdated
Show resolved
Hide resolved
...ensions.Configuration.Binder/tests/SourceGenerationTests/Baselines/Collections.generated.txt
Show resolved
Hide resolved
...aries/Microsoft.Extensions.Configuration.Binder/gen/ConfigurationBindingGenerator.Emitter.cs
Outdated
Show resolved
Hide resolved
f9e16d6
to
dee11a0
Compare
dee11a0
to
b65b0a4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It might be good to get a review from @tarekgh and/or @eiriktsarpalis as well.
...ion.Binder/tests/SourceGenerationTests/Baselines/ServiceCollection/Configure_T.generated.txt
Show resolved
Hide resolved
} | ||
} | ||
|
||
public static void BindCore(IConfiguration configuration, ref List<int> obj, BinderOptions? binderOptions) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Similar question here #88338 (comment); I need to take a deeper look outside this PR.
...inder/tests/SourceGenerationTests/Baselines/ServiceCollection/Configure_T_name.generated.txt
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. added a couple of questions.