Skip to content

Commit a6f2ea9

Browse files
authored
[wasm] Fix circular dependency in WasmAppBuilder (#58904)
Fixes #58816
1 parent 369eb44 commit a6f2ea9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/tasks/WasmAppBuilder/WasmAppBuilder.csproj

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,14 @@
2424
</ItemGroup>
2525

2626
<Target Name="PublishBuilder"
27-
AfterTargets="Build">
27+
AfterTargets="Build"
28+
Condition="'$(_RunningForPublishBuilder)' != 'true'">
2829

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

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

0 commit comments

Comments
 (0)