Skip to content

Commit

Permalink
[wasm] Fix circular dependency in WasmAppBuilder (#58904)
Browse files Browse the repository at this point in the history
Fixes #58816
  • Loading branch information
radical authored Sep 13, 2021
1 parent 369eb44 commit a6f2ea9
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 a6f2ea9

Please sign in to comment.