Skip to content

Commit 3a95fd6

Browse files
[XamlC] Disable XamlC on non-Release builds
1 parent 27eb792 commit 3a95fd6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.nuspec/Microsoft.Maui.Controls.targets

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@
120120
Condition=" '$(DesignTimeBuild)' != 'True' AND '@(MauiXaml)' != ''">
121121
<PropertyGroup>
122122
<_MauiXamlCValidateOnly>$(MauiXamlCValidateOnly)</_MauiXamlCValidateOnly>
123+
<_MauiXamlCValidateOnly Condition="'$(Configuration)' != 'Release' ">True</_MauiXamlCValidateOnly>
123124
<_MauiXamlCValidateOnly Condition="'$(BuildingForLiveUnitTesting)' == 'True' ">True</_MauiXamlCValidateOnly>
124125
</PropertyGroup>
125126
<XamlCTask

0 commit comments

Comments
 (0)