Skip to content

Commit a30e243

Browse files
[XamlC] Disable XamlC on non-Release builds (#1087)
1 parent d2d7176 commit a30e243

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

.nuspec/Microsoft.Maui.Controls.Debug.targets

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
22
<PropertyGroup>
33
<MauiKeepXamlResources>True</MauiKeepXamlResources>
4+
<_MauiForceXamlCForDebug>True</_MauiForceXamlCForDebug>
45
</PropertyGroup>
56

67
<Import Project="$(MSBuildThisFileDirectory)Microsoft.Maui.Controls.targets" />

.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' AND '$(_MauiForceXamlCForDebug)' != 'True'">True</_MauiXamlCValidateOnly>
123124
<_MauiXamlCValidateOnly Condition="'$(BuildingForLiveUnitTesting)' == 'True' ">True</_MauiXamlCValidateOnly>
124125
</PropertyGroup>
125126
<XamlCTask

0 commit comments

Comments
 (0)