KEMBAR78
[release/10.0.1xx-rc1] Use `ToLowerInvariant().Contains(...)` for .NET Framework by github-actions[bot] · Pull Request #31354 · dotnet/maui · GitHub
Skip to content

Conversation

github-actions[bot]
Copy link
Contributor

Backport of #31353 to release/10.0.1xx-rc1

/cc @jfversluis @StephaneDelcroix

@github-actions github-actions bot requested a review from a team as a code owner August 26, 2025 14:49
@mattleibow
Copy link
Member

/azp run

@azure-pipelines
Copy link

Azure Pipelines could not run because the pipeline triggers exclude this branch/path.

@mattleibow mattleibow changed the title [release/10.0.1xx-rc1] fix msbuild error [release/10.0.1xx-rc1] Use ToLowerInvariant().Contains(...) for .NET Framework Aug 26, 2025
@mattleibow mattleibow merged commit 63e1210 into release/10.0.1xx-rc1 Aug 26, 2025
5 of 7 checks passed
@mattleibow mattleibow deleted the backport/pr-31353-to-release/10.0.1xx-rc1 branch August 26, 2025 16:56
rmarinho pushed a commit that referenced this pull request Aug 31, 2025
…ns(...) for .NET Framework

[release/10.0.1xx-rc1] Use ToLowerInvariant().Contains(...) for .NET Framework ([#31354](#31354))

Co-authored-by: Stephane Delcroix <stephane@delcroix.org>

----
#### 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 -->
@github-actions github-actions bot locked and limited conversation to collaborators Sep 26, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants