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
Repro Steps
- Open terminal.
- Run
dotnet new blazorwasm -o BlazorWasmApp_net60the command line.
cd BlazorWasmApp_net60
- Run
dotnet run
- Run
dotnet publish
Actual Result
- Run the "dotnet publish" command, for the first time meet error:'MSB4018: The "GetFileHash" task failed unexpectedly'.

- Run the "dotnet publish" command again a second time, it will work fine, no error.

The following publish error file is IDELog.
publish error.rtf.zip
EXPECTED
Running the "dotnet publish" command with the command works fine without errors.