Skip to content

Commit 1c98288

Browse files
github-actions[bot]lewingCopilot
authored
[release/11.0.1xx-preview3] Copy HotReload dll to intermediate to avoid duplicate identity in multi-client WASM (#53664)
Co-authored-by: Larry Ewing <lewing@microsoft.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent f25f310 commit 1c98288

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/WasmSdk/Sdk/Sdk.targets

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,20 @@ Copyright (c) .NET Foundation. All rights reserved.
2828
<_WasmHotReloadIntermediatePath>$(IntermediateOutputPath)hotreload\</_WasmHotReloadIntermediatePath>
2929
</PropertyGroup>
3030

31-
<!-- Copy the JS module to intermediate folder to avoid duplicate identity when multiple projects reference the same SDK file -->
31+
<!-- Copy the JS module and DLL to intermediate folder to avoid duplicate identity when multiple projects reference the same SDK file -->
3232
<Copy
3333
SourceFiles="$(_WasmHotReloadPath)Microsoft.DotNet.HotReload.WebAssembly.Browser.lib.module.js"
3434
DestinationFolder="$(_WasmHotReloadIntermediatePath)"
3535
SkipUnchangedFiles="true"
3636
Condition="'$(_WasmHotReloadPath)' != ''" />
37+
<Copy
38+
SourceFiles="$(_WasmHotReloadPath)Microsoft.DotNet.HotReload.WebAssembly.Browser.dll"
39+
DestinationFolder="$(_WasmHotReloadIntermediatePath)"
40+
SkipUnchangedFiles="true"
41+
Condition="'$(_WasmHotReloadPath)' != ''" />
3742

3843
<ItemGroup Condition="'$(_WasmHotReloadPath)' != ''">
39-
<ReferenceCopyLocalPaths Include="$(_WasmHotReloadPath)Microsoft.DotNet.HotReload.WebAssembly.Browser.dll">
44+
<ReferenceCopyLocalPaths Include="$(_WasmHotReloadIntermediatePath)Microsoft.DotNet.HotReload.WebAssembly.Browser.dll">
4045
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
4146
<CopyToPublishDirectory>Never</CopyToPublishDirectory>
4247
</ReferenceCopyLocalPaths>
@@ -47,6 +52,7 @@ Copyright (c) .NET Foundation. All rights reserved.
4752
<OriginalItemSpec>%(Identity)</OriginalItemSpec>
4853
</_WasmHotReloadModule>
4954
<FileWrites Include="$(_WasmHotReloadIntermediatePath)Microsoft.DotNet.HotReload.WebAssembly.Browser.lib.module.js" />
55+
<FileWrites Include="$(_WasmHotReloadIntermediatePath)Microsoft.DotNet.HotReload.WebAssembly.Browser.dll" />
5056
</ItemGroup>
5157

5258
<DefineStaticWebAssets

0 commit comments

Comments
 (0)