Skip to content

Commit 63e1210

Browse files
[release/10.0.1xx-rc1] Use ToLowerInvariant().Contains(...) for .NET Framework (#31354)
Co-authored-by: Stephane Delcroix <[email protected]>
1 parent 19df003 commit 63e1210

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Controls/src/Build.Tasks/nuget/buildTransitive/netstandard2.0/Microsoft.Maui.Controls.targets

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,9 @@
8787
<_MauiXaml_SG Remove="@(_MauiXaml_SG)" />
8888
<_MauiXaml_RT Remove="@(_MauiXaml_RT)" />
8989
<_MauiXaml_XC Remove="@(_MauiXaml_XC)" />
90-
<_MauiXaml_SG Include="@(MauiXaml)" Condition="$([System.String]::new('%(MauiXaml.Inflator)').Contains('SourceGen', StringComparison.OrdinalIgnoreCase))" />
91-
<_MauiXaml_RT Include="@(MauiXaml)" Condition="$([System.String]::new('%(MauiXaml.Inflator)').Contains('Runtime', StringComparison.OrdinalIgnoreCase))" />
92-
<_MauiXaml_XC Include="@(MauiXaml)" Condition="$([System.String]::new('%(MauiXaml.Inflator)').Contains('XamlC', StringComparison.OrdinalIgnoreCase))" />
90+
<_MauiXaml_SG Include="@(MauiXaml)" Condition="$([System.String]::new('%(MauiXaml.Inflator)').ToLowerInvariant().Contains('sourcegen'))" />
91+
<_MauiXaml_RT Include="@(MauiXaml)" Condition="$([System.String]::new('%(MauiXaml.Inflator)').ToLowerInvariant().Contains('runtime'))" />
92+
<_MauiXaml_XC Include="@(MauiXaml)" Condition="$([System.String]::new('%(MauiXaml.Inflator)').ToLowerInvariant().Contains('xamlc'))" />
9393
<_MauiXaml_AsEmbeddedResource Include="@(_MauiXaml_RT)" />
9494
<_MauiXaml_AsEmbeddedResource Include="@(_MauiXaml_XC)" KeepDuplicates="false" />
9595
</ItemGroup>

0 commit comments

Comments
 (0)