Skip to content

Commit e5d3f61

Browse files
authored
[Blazor] Fix Blazor framework static web assets not included when OutputType is WinExe (#64633)
* Fix Blazor framework static web assets not being included when OutputType is WinExe
1 parent 3cc4dcb commit e5d3f61

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Assets/build/Microsoft.AspNetCore.App.Internal.Assets.targets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<BlazorFrameworkStaticWebAssetRoot Condition="'$(BlazorFrameworkStaticWebAssetRoot)' == ''">$(MSBuildThisFileDirectory)..\_framework</BlazorFrameworkStaticWebAssetRoot>
1111
</PropertyGroup>
1212

13-
<Target Name="_AddBlazorFrameworkStaticWebAssets" Condition="'$(OutputType)' == 'Exe'">
13+
<Target Name="_AddBlazorFrameworkStaticWebAssets" Condition="'$(OutputType)' == 'Exe' or '$(OutputType)' == 'WinExe'">
1414
<ItemGroup Condition="'$(UsingMicrosoftNETSdkWeb)' == 'true'">
1515
<_FrameworkStaticWebAssetCandidate Include="$(BlazorFrameworkStaticWebAssetRoot)\blazor.web.js">
1616
<RelativePath>_framework/blazor.web.js</RelativePath>

0 commit comments

Comments
 (0)