Skip to content

Commit 66ecdab

Browse files
authored
Ensure $(Configuration) is evaluated prior to using it (#18113)
Fixes #12779
1 parent baf72c7 commit 66ecdab

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

src/Components/Blazor/Build/src/targets/All.props

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,6 @@
44
<PropertyGroup>
55
<DefaultWebContentItemExcludes>$(DefaultWebContentItemExcludes);wwwroot\**</DefaultWebContentItemExcludes>
66

7-
<!-- By default, enable auto rebuilds for debug builds. Note that the server will not enable it in production environments regardless. -->
8-
<BlazorRebuildOnFileChange Condition="'$(Configuration)' == 'Debug' AND '$(BlazorRebuildOnFileChange)' == ''">true</BlazorRebuildOnFileChange>
9-
10-
<!-- By default, enable debugging for debug builds. -->
11-
<BlazorEnableDebugging Condition="'$(Configuration)' == 'Debug' AND '$(BlazorEnableDebugging)' == ''">true</BlazorEnableDebugging>
12-
137
<!-- When using IISExpress with a standalone app, there's no point restarting IISExpress after build. It slows things unnecessarily and breaks in-flight HTTP requests. -->
148
<NoRestartServerOnBuild>true</NoRestartServerOnBuild>
159
</PropertyGroup>

src/Components/Blazor/Build/src/targets/All.targets

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313

1414
<!-- The Blazor build code can only find your referenced assemblies if they are in the output directory -->
1515
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
16+
17+
<!-- By default, enable debugging for debug builds. -->
18+
<BlazorEnableDebugging Condition="'$(Configuration)' == 'Debug' AND '$(BlazorEnableDebugging)' == ''">true</BlazorEnableDebugging>
1619
</PropertyGroup>
1720

1821
<Import Project="Blazor.MonoRuntime.targets" />

0 commit comments

Comments
 (0)