Skip to content

Blazor publish tests fail when Static Web Assets copy paths exceed MAX_PATH #56500

Open

Description

@marcpopMSFT

🤖 Tracks FullFramework Helix failures where Static Web Assets publish cannot copy compressed Hot Reload assets because the destination path exceeds the Windows path limit.

Affected tests:

  • Microsoft.NET.Sdk.BlazorWebAssembly.Tests.WasmPublishIntegrationTest.Publish_HostingMultipleBlazorWebApps_Works
  • Microsoft.NET.Sdk.BlazorWebAssembly.Tests.WasmPublishIntegrationTest.Publish_WithStaticWebBasePathWorks(basePath: "/different-path")
  • Microsoft.NET.Sdk.BlazorWebAssembly.Tests.WasmPublishIntegrationTest.Publish_WithStaticWebBasePathWorks(basePath: "different-path")

Build Information

Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1620308
Retry: Attempt 2
Leg Name: Build FullFramework: windows (x64)
Helix Job: 09e148d6-e357-42dc-8125-f3adbae9fd8d
Work Item: Microsoft.NET.Sdk.BlazorWebAssembly.Tests.dll

Error Message

{
  "ErrorMessage": "",
  "BuildRetry": false,
  "ErrorPattern": "Microsoft\\.NET\\.Sdk\\.StaticWebAssets\\.Publish\\.targets\\(212,5\\): error MSB3021: Unable to copy file \".*\" to \".*Microsoft\\.DotNet\\.HotReload\\.WebAssembly\\.Browser\\.[^\"]+\\.lib\\.module\\.js\\.(?:br|gz)\"\\. The specified path, file name, or both are too long\\.",
  "ExcludeConsoleLog": false
}

The matcher is scoped to the Static Web Assets publish target, MSB3021, and compressed Hot Reload browser assets while excluding randomized paths and content hashes.

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=1620308
Error message validated: [Microsoft\.NET\.Sdk\.StaticWebAssets\.Publish\.targets\(212,5\): error MSB3021: Unable to copy file ".*" to ".*Microsoft\.DotNet\.HotReload\.WebAssembly\.Browser\.[^"]+\.lib\.module\.js\.(?:br|gz)"\. The specified path, file name, or both are too long\.]
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 10/5/2026 5:06:46 PM UTC

Report

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 0 0

Activity

  1. added
    untriaged
    on Oct 5, 2026
  2. locked and limited conversation to collaborators on Oct 5, 2026
  3. unlocked this conversation on Oct 5, 2026
  4. removed
    untriaged
    on Oct 5, 2026
  5. github-actions commented on Oct 5, 2026

    @github-actions
    Contributor

    🎯 Agentic Issue Triage

    Triage Assessment:

    ➡️ Summary: Blazor WebAssembly publish tests fail on Windows FullFramework because compressed Hot Reload asset copy paths exceed MAX_PATH (MSB3021). Consider shortening test/output paths or asset destination paths.

    Generated by 🏷️ Issue Triage for #56500 · copilot · auto · 22.7 AIC · ⌖ 7.42 AIC · ⊞ 14.4K · ◷

  6. github-actions commented on Nov 19, 2026

    @github-actions
    Contributor

    This Known Build Error has had 0 hits in the past month and has been labeled stale. It will be auto-closed in 7 days if the hit count remains at 0. Add the keep-open label to prevent auto-closure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions