Skip to content

Commit

Permalink
[wasm] Fix circular dependency in WasmAppBuilder (#58905)
Browse files Browse the repository at this point in the history
Fixes #58816

Co-authored-by: Ankit Jain <[email protected]>
  • Loading branch information
github-actions[bot] and radical authored Sep 14, 2021
1 parent 819bc3a commit 830003d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/tasks/WasmAppBuilder/WasmAppBuilder.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,14 @@
</ItemGroup>

<Target Name="PublishBuilder"
AfterTargets="Build">
AfterTargets="Build"
Condition="'$(_RunningForPublishBuilder)' != 'true'">

<!-- needed for publishing with multi-targeting. We are publishing essentially to get the SR.MetadataLoadContext.dll :/ -->
<ItemGroup>
<_PublishFramework Include="$(TargetFrameworks)" />
</ItemGroup>
<MSBuild Projects="$(MSBuildProjectFile)" Targets="Publish" Properties="TargetFramework=%(_PublishFramework.Identity)" />
<MSBuild Projects="$(MSBuildProjectFile)" Targets="Publish" Properties="TargetFramework=%(_PublishFramework.Identity);_RunningForPublishBuilder=true" />
</Target>

<Target Name="GetFilesToPackage" Returns="@(FilesToPackage)">
Expand Down

0 comments on commit 830003d

Please sign in to comment.