Commit 1ff256a
committed
Merged PR 52734: [release/10.0.1xx-rc1] Use ToLowerInvariant().Contains(...) for .NET Framework
[release/10.0.1xx-rc1] Use ToLowerInvariant().Contains(...) for .NET Framework ([#31354](#31354))
Co-authored-by: Stephane Delcroix <[email protected]>
----
#### AI description (iteration 1)
#### PR Classification
This pull request implements a code cleanup by simplifying case-insensitive string comparisons.
#### PR Summary
The changes update the conditions in the Maui Controls targets file, replacing multiple explicit string comparison overloads with a cleaner approach using ToLowerInvariant().Contains(...).
- `src/Controls/src/Build.Tasks/nuget/buildTransitive/netstandard2.0/Microsoft.Maui.Controls.targets`: Updated conditions for `<_MauiXaml_SG>`, `<_MauiXaml_RT>`, and `<_MauiXaml_XC>` to use ToLowerInvariant().Contains(...) instead of Contains(..., StringComparison.OrdinalIgnoreCase).
<!-- GitOpsUserAgent=GitOps.Apps.Server.pullrequestcopilot -->1 parent 358ea29 commit 1ff256a
File tree
1 file changed
+3
-3
lines changed- src/Controls/src/Build.Tasks/nuget/buildTransitive/netstandard2.0
1 file changed
+3
-3
lines changedLines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | | - | |
91 | | - | |
92 | | - | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
| |||
0 commit comments