Describe the bug
In my docker container, the dotnet publish command fails here:
...
dotnet/sdk#19 22.00 [29/29] System.Private.CoreLib.dll -> System.Private.CoreLib.dll.bc
dotnet/sdk#19 22.07 /usr/share/dotnet/packs/Microsoft.NET.Runtime.WebAssembly.Sdk/6.0.0-rc.1.21451.13/Sdk/WasmApp.Native.targets(394,5): error MSB3073: The command "emcc --version" exited with code 1. [/src/Client/example1.Client.csproj]
------
executor failed running [/bin/sh -c dotnet publish "example1.Server.csproj" -c Release -o /app/publish]: exit code: 1
C:\git\example1>
To Reproduce
Create blazor wasm project with
dotnet new blazorwasm --hosted
<RunAOTCompilation>true</RunAOTCompilation>
build the image
See this repo: https://github.com/veertien/example-blazor-aot
Exceptions (if any)
error MSB3073: The command "emcc --version" exited with code 1.
Further technical details
docker run mcr.microsoft.com/dotnet/sdk:6.0 dotnet --info
.NET SDK (reflecting any global.json):
Version: 6.0.100-rc.1.21458.32
Commit: d7c22323c4
Runtime Environment:
OS Name: debian
OS Version: 11
OS Platform: Linux
RID: debian.11-x64
Base Path: /usr/share/dotnet/sdk/6.0.100-rc.1.21458.32/
Host (useful for support):
Version: 6.0.0-rc.1.21451.13
Commit: d7619cd4b1
.NET SDKs installed:
6.0.100-rc.1.21458.32 [/usr/share/dotnet/sdk]
.NET runtimes installed:
Microsoft.AspNetCore.App 6.0.0-rc.1.21452.15 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 6.0.0-rc.1.21451.13 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
Describe the bug
In my docker container, the
dotnet publishcommand fails here:To Reproduce
Create blazor wasm project with
Add a Dockerfile with the dotnet 6 sdk
Update the Client project file to include:
build the image
See this repo: https://github.com/veertien/example-blazor-aot
Exceptions (if any)
Further technical details