Skip to content

net10.0 rc2 publish for browser-wasm project is missing wasm artifacts in Linux that are present in Windows publish #51636

@nlavalle

Description

@nlavalle

Describe the bug

I have a .net10.0 project that is serving a .net9.0 library as a wasm package for a VueJS frontend. On Windows 10 (shame, I know) my dotnet publish -c Release command works successfully and I can hook the wwwroot artifacts into my app. I pulled the same repo down onto an Ubuntu 24.04 LTS device and my dotnet publish -c Release seems to be missing wasm files? The VueJS is blowing up with a mono_wasm_load_runtime () failed which I'm assuming is it trying to find these dependency packages.

To Reproduce

I don't have a repro/example to reproduce this, but I'm attaching my binlogs from the Windows publish, Linux build, and Linux publish. If those are insufficient I can try to see if I can whip up a minimal repro case. Here's my csproj definition if that is meaningful:

<Project Sdk="Microsoft.NET.Sdk.WebAssembly">
  <PropertyGroup>
    <TargetFramework>net10.0</TargetFramework>
    <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
    <RuntimeIdentifier>browser-wasm</RuntimeIdentifier>
    <OverrideHtmlAssetPlaceholders>true</OverrideHtmlAssetPlaceholders>

    <PublishTrimmed>true</PublishTrimmed>
    <RunAOTCompilation>true</RunAOTCompilation>
    <WasmStripILAfterAOT>true</WasmStripILAfterAOT>
    <!-- <WasmSingleFileBundle>true</WasmSingleFileBundle> --> <!-- explosions -->
  </PropertyGroup>

  <ItemGroup>
    <ProjectReference Include="..\Necronomicon\src\necronomicon.csproj" />
  </ItemGroup>
</Project>

Exceptions (if any)

None in the publish just nullable warnings

Further technical details

details of dotnet --info

$ dotnet --info .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: ubuntu
OS Version: 24.04
OS Platform: Linux
RID: ubuntu.24.04-x64
Base Path: /usr/lib/dotnet/sdk/10.0.100-rc.2.25502.107/

.NET workloads installed:
[wasm-experimental]
Installation Source: SDK 10.0.100-rc.2
Manifest Version: 10.0.100-rc.2.25502.107/10.0.100-rc.2
Manifest Path: /home/nick/.dotnet/sdk-manifests/10.0.100-rc.2/microsoft.net.workload.mono.toolchain.current/10.0.100-rc.2.25502.107/WorkloadManifest.json
Install Type: FileBased

[wasm-tools]
Installation Source: SDK 10.0.100-rc.2
Manifest Version: 10.0.100-rc.2.25502.107/10.0.100-rc.2
Manifest Path: /home/nick/.dotnet/sdk-manifests/10.0.100-rc.2/microsoft.net.workload.mono.toolchain.current/10.0.100-rc.2.25502.107/WorkloadManifest.json
Install Type: FileBased

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:
9.0.111 [/usr/lib/dotnet/sdk]
10.0.100-rc.2.25502.107 [/usr/lib/dotnet/sdk]

.NET runtimes installed:
Microsoft.AspNetCore.App 9.0.10 [/usr/lib/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 10.0.0-rc.2.25502.107 [/usr/lib/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 9.0.10 [/usr/lib/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 10.0.0-rc.2.25502.107 [/usr/lib/dotnet/shared/Microsoft.NETCore.App]

Other architectures found:
None

Environment variables:
DOTNET_BUNDLE_EXTRACT_BASE_DIR [/home/nick/.cache/dotnet_bundle_extract]
DOTNET_ROOT [/home/nick/dotnet]

global.json file:
Not found

Version: 1.105.1 Commit: 7d842fb85a0275a4a8e4d7e040d2625abbf7f084 Date: 2025-10-14T22:33:36.618Z Electron: 37.6.0 ElectronBuildId: 12502201 Chromium: 138.0.7204.251 Node.js: 22.19.0 V8: 13.8.258.32-electron.0 OS: Linux x64 6.14.0-35-generic snap

binlogs.zip

basic screenshots:

Windows publish folder Image
Linux publish folder Image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions