Skip to content

Create 6.0 BlazorWebAssemblyApp project with the command and run the "dotnet publish" command, for the first time meet error:'MSB4018: The "GetFileHash" task failed unexpectedly'. #40328

@v-wenkecheng

Description

@v-wenkecheng

Azure DevOps work item: https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1484614?src=WorkItemMention&src-action=artifact_link

INSTALL STEPS
1.Clean M1 macOS machine
2. Install SDK 6.0.200 arm64 from:https://dotnet.microsoft.com/en-us/download/dotnet/6.0

Testcases Affected
[6.0]BlazorWebAssemblyWithPWANoAuth
[6.0]SignalRWithBlazorWebAssembly

Platform

  • Windows
  • macOS
  • Linux

Repro Steps

  1. Open terminal.
  2. Rundotnet new blazorwasm -o BlazorWasmApp_net60the command line.
  3. cd BlazorWasmApp_net60
  4. Run dotnet run
  5. Run dotnet publish

Actual Result

  1. Run the "dotnet publish" command, for the first time meet error:'MSB4018: The "GetFileHash" task failed unexpectedly'.
    MicrosoftTeams-image (8)
  2. Run the "dotnet publish" command again a second time, it will work fine, no error.

MicrosoftTeams-image (9)

The following publish error file is IDELog.
publish error.rtf.zip

EXPECTED
Running the "dotnet publish" command with the command works fine without errors.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-blazorIncludes: Blazor, Razor Componentsfeature-blazor-wasmThis issue is related to and / or impacts Blazor WebAssembly

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions