From f6b27018d4b9bd8323abdf16f246374286ed5456 Mon Sep 17 00:00:00 2001 From: Larry Ewing Date: Wed, 1 Apr 2026 08:57:15 -0500 Subject: [PATCH 1/2] Copy HotReload dll to intermediate to avoid duplicate identity The JS module was already copied to $(IntermediateOutputPath)hotreload/ to give each project a unique path (sdk#52816), but the dll was still referenced directly from the shared SDK path. In multi-client hosted Blazor WASM scenarios, both clients reference the same SDK-path dll, which causes ComputeWasmPublishAssets to replace Framework-materialized per-project assets with the shared path, leading to duplicate Identity crashes in ApplyCompressionNegotiation. Copy the dll to intermediate (matching the .js pattern) so each project gets a unique path. This is the same approach @javiercn recommended for the JS module in sdk#52816. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- src/WasmSdk/Sdk/Sdk.targets | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/WasmSdk/Sdk/Sdk.targets b/src/WasmSdk/Sdk/Sdk.targets index 35a16622a0cf..f09e0defdb5c 100644 --- a/src/WasmSdk/Sdk/Sdk.targets +++ b/src/WasmSdk/Sdk/Sdk.targets @@ -28,15 +28,20 @@ Copyright (c) .NET Foundation. All rights reserved. <_WasmHotReloadIntermediatePath>$(IntermediateOutputPath)hotreload\ - + + - + PreserveNewest Never From 81387984d1a12635da8d3ad51a978c8abe3960fb Mon Sep 17 00:00:00 2001 From: Larry Ewing Date: Wed, 1 Apr 2026 09:40:14 -0500 Subject: [PATCH 2/2] Add FileWrites entry for copied HotReload dll Ensures dotnet clean removes the intermediate copy. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- src/WasmSdk/Sdk/Sdk.targets | 1 + 1 file changed, 1 insertion(+) diff --git a/src/WasmSdk/Sdk/Sdk.targets b/src/WasmSdk/Sdk/Sdk.targets index f09e0defdb5c..1a6af3ca1bf5 100644 --- a/src/WasmSdk/Sdk/Sdk.targets +++ b/src/WasmSdk/Sdk/Sdk.targets @@ -52,6 +52,7 @@ Copyright (c) .NET Foundation. All rights reserved. %(Identity) +