Skip to content

OverrideHtmlAssetPlaceholders is not honored when building from Server project #121121

Closed as duplicate

Description

@Denny09310

Description

Following issue #119886, I’ve encountered another problem. When publishing from the Server project (which hosts the client), the index.html file contains:

<script src="_framework/blazor.webassembly#[.{fingerprint}].js"></script>

This reference isn’t being resolved correctly.
Publishing the Client project directly works as expected.
I’ve also tried adding the OverrideHtmlAssetPlaceholders tag to the Server project, but it doesn’t fix the issue.

Reproduction Steps

I think the same attachment of the issue #119886 can be used as a repro

Expected behavior

The published index.html file should have a fingerprinted reference to blazor.webassembly.js

Actual behavior

The published index.html file contains the blazor.webassembly.js not being processed

Regression?

No response

Known Workarounds

No response

Configuration

.NET SDK:
Version: 10.0.100-rc.2.25502.107
Commit: 89c8f6a112
Workload version: 10.0.100-rc.2.25513.4
MSBuild version: 18.0.0-preview-25502-107+89c8f6a11

Runtime environment:
OS Name: Windows
OS Version: 10.0.26100
OS Platform: Windows
RID: win-x64
Base Path: C:\Program Files\dotnet\sdk\10.0.100-rc.2.25502.107\

Installed .NET workloads:
[android]
Installation source: SDK 10.0.100-rc.2, VS 18.0.11121.172
Manifest versions: 36.0.0-rc.2.332/10.0.100-rc.2
Manifest path: C:\Program Files\dotnet\sdk-manifests\10.0.100-rc.2\microsoft.net.sdk.android\36.0.0-rc.2.332\WorkloadManifest.json
Installation type: Msi

[ios]
Installation source: SDK 10.0.100-rc.2, VS 18.0.11121.172
Manifest versions: 26.0.10970-net10-rc.2/10.0.100-rc.2
Manifest path: C:\Program Files\dotnet\sdk-manifests\10.0.100-rc.2\microsoft.net.sdk.ios\26.0.10970-net10-rc.2\WorkloadManifest.json
Installation type: Msi

[maccatalyst]
Installation source: SDK 10.0.100-rc.2, VS 18.0.11121.172
Manifest versions: 26.0.10970-net10-rc.2/10.0.100-rc.2
Manifest path: C:\Program Files\dotnet\sdk-manifests\10.0.100-rc.2\microsoft.net.sdk.maccatalyst\26.0.10970-net10-rc.2\WorkloadManifest.json
Installation type: Msi

[maui-windows]
Installation source: SDK 10.0.100-rc.2, VS 18.0.11121.172
Manifest versions: 10.0.0-rc.2.25504.7/10.0.100-rc.2
Manifest path: C:\Program Files\dotnet\sdk-manifests\10.0.100-rc.2\microsoft.net.sdk.maui\10.0.0-rc.2.25504.7\WorkloadManifest.json
Installation type: Msi

[wasm-tools]
Installation source: SDK 10.0.100-rc.2
Manifest versions: 10.0.100-rc.2.25502.107/10.0.100-rc.2
Manifest path: C:\Program Files\dotnet\sdk-manifests\10.0.100-rc.2\microsoft.net.workload.mono.toolchain.current\10.0.100-rc.2.25502.107\WorkloadManifest.json
Installation type: Msi

Configured to use “workload sets” when installing new manifests.

Host:
Version: 10.0.0-rc.2.25502.107
Architecture: x64
Commit: 89c8f6a112

.NET SDKs installed:
10.0.100-rc.1.25451.107 [C:\Program Files\dotnet\sdk]
10.0.100-rc.2.25502.107 [C:\Program Files\dotnet\sdk]

.NET runtimes installed:
Microsoft.AspNetCore.App 8.0.21 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 9.0.10 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 10.0.0-rc.2.25502.107 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 8.0.21 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 9.0.10 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 10.0.0-rc.2.25502.107 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 8.0.21 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 9.0.10 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 10.0.0-rc.2.25502.107 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

Other architectures found:
x86 [C:\Program Files (x86)\dotnet]
registered at [HKLM\SOFTWARE\dotnet\Setup\InstalledVersions\x86\InstallLocation]

Environment variables:
DOTNET_REACTOR [C:\Program Files (x86)\Eziriz.NET Reactor]
DOTNET_REACTOR_CMD [C:\Program Files (x86)\Eziriz.NET Reactor\dotNET_Reactor.Console.exe]

global.json file:
Not found

Other information

No response

Activity

  1. added
    untriaged
    on Oct 27, 2025
  2. added
    needs-area-label
    on Oct 27, 2025
  3. added
    os-browser
    and removed
    needs-area-label
    on Oct 27, 2025
  4. added
    arch-wasm
    on Dec 4, 2025
  5. dotnet-policy-service commented on Dec 4, 2025

    @dotnet-policy-service
    Contributor

    Tagging subscribers to 'arch-wasm': @lewing, @pavelsavara
    See info in area-owners.md if you want to be subscribed.

  6. added this to the 10.0.x milestone on Dec 4, 2025
  7. removed
    untriaged
    on Dec 4, 2025
  8. locked and limited conversation to collaborators on Jan 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

arch-wasmarea-Build-monoos-browser

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions