Skip to content

Commit

Permalink
[browser] Always use ResolvedFileToPublish instead of WasmAssembliesF…
Browse files Browse the repository at this point in the history
…inal when targeting .NET 6 (#105805)
  • Loading branch information
maraf authored Aug 8, 2024
1 parent 8a894b5 commit 61b0020
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -460,10 +460,10 @@ Copyright (c) .NET Foundation. All rights reserved.
<_WasmEmitSourceMapPublish Condition="'$(_WasmEmitSourceMapPublish)' == ''">false</_WasmEmitSourceMapPublish>
</PropertyGroup>

<ItemGroup Condition="@(WasmAssembliesFinal->Count()) == 0">
<ItemGroup Condition="@(WasmAssembliesFinal->Count()) == 0 or '$(TargetFrameworkVersion)' == 'v6.0'">
<_WasmResolvedFilesToPublish Include="@(ResolvedFileToPublish)" />
</ItemGroup>
<ItemGroup Condition="@(WasmAssembliesFinal->Count()) > 0">
<ItemGroup Condition="@(WasmAssembliesFinal->Count()) > 0 and '$(TargetFrameworkVersion)' != 'v6.0'">
<_WasmResolvedFilesToPublish Include="@(WasmAssembliesFinal)" />
<!-- Ensure we have 'RelativePath' required by ComputeWasmPublishAssets. 9+ version of MonoAOTCompiler is copying this metadata, but when targeting downlevel versions it doesn't. -->
<_WasmResolvedFilesToPublish RelativePath="%(FileName)%(Extension)" Condition="'%(_WasmResolvedFilesToPublish.RelativePath)' == ''" />
Expand Down

0 comments on commit 61b0020

Please sign in to comment.