Skip to content

Commit f5cb6b5

Browse files
do not default to enablediagnostics on release
1 parent 38fda71 commit f5cb6b5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@
1111
<_MauiXamlInflator Condition=" '$(MauiXamlInflator)' == '' And '$(Configuration)' == 'Debug' ">Runtime</_MauiXamlInflator>
1212
<_MauiXamlInflator Condition=" '$(MauiXamlInflator)' == '' And '$(Configuration)' != 'Debug' ">XamlC</_MauiXamlInflator>
1313

14-
<MauiXamlEnableDiagnostics Condition=" '$(MauiXamlEnableDiagnostics)' == '' ">$(EnableDiagnostics)</MauiXamlEnableDiagnostics>
14+
<MauiXamlEnableDiagnostics Condition=" '$(MauiXamlEnableDiagnostics)' == '' And '$(Configuration)' == 'Debug' ">$(EnableMauiDiagnostics)</MauiXamlEnableDiagnostics>
15+
<MauiXamlEnableDiagnostics Condition=" '$(MauiXamlEnableDiagnostics)' == '' And '$(Configuration)' == 'Debug' ">$(EnableDiagnostics)</MauiXamlEnableDiagnostics>
1516
<MauiXamlEnableDiagnostics Condition=" '$(MauiXamlEnableDiagnostics)' == '' And '$(Configuration)' == 'Debug' ">true</MauiXamlEnableDiagnostics>
16-
17+
1718
<MauiXamlNoWarn Condition=" '$(MauiXamlNoWarn)' != '' ">$(MauiXamlNoWarn.Replace(';', ','))</MauiXamlNoWarn>
1819

1920
<!-- The WINUI check for this only runs when there is an empty string so I just convert false to an empty string to fall in line with our other properties -->

0 commit comments

Comments
 (0)