Skip to content

Commit

Permalink
Fix missing 'RelativePath' metadata in items produced by AOT compiler…
Browse files Browse the repository at this point in the history
… when targeting downlevel versions (#103633)
  • Loading branch information
maraf committed Jun 19, 2024
1 parent 0498939 commit c2e1bdc
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -448,6 +448,8 @@ Copyright (c) .NET Foundation. All rights reserved.
</ItemGroup>
<ItemGroup Condition="@(WasmAssembliesFinal->Count()) > 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)' == ''" />

<!-- remove the original assemblies -->
<ResolvedFileToPublish Remove="@(WasmAssembliesToBundle)" />
Expand Down

0 comments on commit c2e1bdc

Please sign in to comment.