Repository navigation
Description
Current behavior 🐛
A new Uno app targeting net11.0-browserwasm stays on the Uno splash screen forever. The browser console shows one error: Could not load file or assembly 'Uno.UI.Runtime.WebAssembly.Browser, Version=255.255.255.255, ...'. The boot manifest (_framework/dotnet.js) has no entry for that assembly, and the file deployed as _framework/Uno.UI.Runtime.WebAssembly.Browser.dll is the package's 132-byte .uprimarker text file. It was first reported in Firefox, but it is not browser-specific: Edge fails the same way against the same build.
Cause: _UnoFindPackageAssetMarkers builds the marker items with an item transform, @(RuntimeCopyLocalItems->'%(RootDir)%(Directory)%(Filename).uprimarker'), and adds them to ReferenceCopyLocalPaths. A transform copies all metadata of the source item, so each marker carries the DLL's AssetType=runtime, DestinationSubPath=<Assembly>.dll and PathInPackage=lib/<tfm>/<Assembly>.dll. Since .NET 11, ComputeWasmBuildAssets keeps the first candidate per relative path ("Skipping duplicate relative path"; dotnet/runtime#123341, merged 2026-01-23, first shipped in v11.0.0-preview.1). The marker comes first, so it takes _framework/<Assembly>.dll and the real DLL is dropped before webcil conversion. The .NET 10 task (10.0.12) has no such check, so both items pass and the DLL still reaches the manifest.
The four Uno.Fonts.* packages (Fluent, Inter, OpenSans, Roboto) are hit the same way: their 0-byte markers replace their DLLs. That does not block startup, but it is the same defect.
Regression: Yes, but triggered by .NET 11, not by an Uno version. Every Uno version tried fails on net11.0-browserwasm (Uno.Sdk 7.0.5 and 7.0.0-dev.179), and the same Uno versions pass on net10.0-browserwasm with the .NET 10 SDK. Uno's marker target is the same in Uno.WinUI 6.7.359 and 7.0.32, so the Uno side is old; it became fatal when the .NET 11 WASM SDK started deduplicating by relative path.
| Uno.Sdk | TFM | .NET SDK (WASM pack) | Uno.UI.Runtime.WebAssembly.Browser in boot manifest |
|---|---|---|---|
| 7.0.5 | net11.0 | 11.0.100-rc.3 (pack 11.0.0-rc.1.26425.128) | missing, marker deployed as the DLL |
| 7.0.0-dev.179 | net11.0 | 11.0.100-rc.3 (pack 11.0.0-rc.1.26425.128) | missing, marker deployed as the DLL |
| 7.0.5 | net10.0 | 10.0.401 (pack 10.0.12) | present |
| 7.0.0-dev.179 | net10.0 | 10.0.401 (pack 10.0.12) | present |
The .NET 11 rc.1 and rc.3 versions of ComputeWasmBuildAssets decompile to the same code, so updating the workload does not help. release/10.0 of dotnet/runtime has not changed this file since June 2025, so .NET 10 servicing (through 10.0.15) is not affected.
Screenshots:
firefox-stuck-on-splash.png: Firefox 159.0.1 after 45 s, still on the splash screen.
edge-stuck-on-splash.png: Edge 155 (headless) on the same build after 30 s, same state.
firefox-with-workaround.png: the same app built with the workaround below, running in Firefox (Hot Design overlay open).
Logs
# Browser console (Firefox 159.0.1; Edge shows the same text as "ManagedError: ...")
error: Could not load file or assembly 'Uno.UI.Runtime.WebAssembly.Browser, Version=255.255.255.255, Culture=neutral, PublicKeyToken=null' or one of its dependencies.
# Diagnostic build log, task ComputeWasmBuildAssets (Microsoft.NET.Sdk.WebAssembly.Pack 11.0.0-rc.1.26425.128)
_WasmBuildAssetCandidates=
<nuget>\uno.winui.runtime.webassembly.browser\7.0.32\lib\net11.0\Uno.UI.Runtime.WebAssembly.Browser.uprimarker
AssetType=runtime
CopyLocal=true
DestinationSubPath=Uno.UI.Runtime.WebAssembly.Browser.dll
NuGetPackageId=Uno.WinUI.Runtime.WebAssembly.Browser
PathInPackage=lib/net11.0/Uno.UI.Runtime.WebAssembly.Browser.dll
Skipping duplicate relative path '_framework/Uno.Fonts.Fluent.dll' for candidate '<nuget>\uno.fonts.fluent\2.9.4\lib\netstandard1.0\Uno.Fonts.Fluent.dll'
Skipping duplicate relative path '_framework/Uno.UI.Runtime.WebAssembly.Browser.dll' for candidate '<nuget>\uno.winui.runtime.webassembly.browser\7.0.32\lib\net11.0\Uno.UI.Runtime.WebAssembly.Browser.dll'
Materialized framework asset '<nuget>\uno.winui.runtime.webassembly.browser\7.0.32\lib\net11.0\Uno.UI.Runtime.WebAssembly.Browser.uprimarker' to '<app>\obj\Debug\net11.0-browserwasm\fx\UnoApp4\_framework\Uno.UI.Runtime.WebAssembly.Browser.dll'.
# The deployed "DLL" (132 bytes)
$ cat obj/Debug/net11.0-browserwasm/fx/UnoApp4/_framework/Uno.UI.Runtime.WebAssembly.Browser.dll
build\Uno.WinUI.Runtime.WebAssembly.Browser.props
build\Uno.WinUI.Runtime.WebAssembly.Browser.targets
build\native\uno_gl_shim.c
# Boot manifest vs bin: assemblies in bin\ but not in dotnet.js resources.assembly
Uno.Fonts.Fluent, Uno.Fonts.Inter, Uno.Fonts.OpenSans, Uno.Fonts.Roboto, Uno.UI.Runtime.WebAssembly.Browser
Expected behavior 🎯
The app starts in every browser. The boot manifest lists Uno.UI.Runtime.WebAssembly.Browser.wasm (and the Uno.Fonts.* assemblies), and .uprimarker files are never deployed under an assembly's name. The marker items should get their own metadata (DestinationSubPath=%(Filename)%(Extension), no AssetType=runtime, no PathInPackage of the DLL) instead of inheriting the DLL's.
How to reproduce it (as minimally and precisely as possible) 🔬
- Create an Uno app with Uno.Sdk 7.0.5 (Visual Studio 2026 wizard or
dotnet new unoapp) withnet11.0-browserwasmamong its target frameworks, on .NET SDK 11.0.100-rc.3 with thewasm-toolsworkload. dotnet build -f net11.0-browserwasm(a clean build is enough; Visual Studio's build gives the same output).dotnet run -f net11.0-browserwasmand openhttp://localhost:5000/in Firefox or Edge.- Observe: the splash screen never goes away, and the console shows "Could not load file or assembly 'Uno.UI.Runtime.WebAssembly.Browser'".
- Optional:
obj/Debug/net11.0-browserwasm/fx/<App>/_framework/Uno.UI.Runtime.WebAssembly.Browser.dllis 132 bytes of text, and searchingobj/Debug/net11.0-browserwasm/dotnet.jsforUno.UI.Runtime.WebAssembly.Browserfinds nothing.
Seen in 3 of 3 net11.0-browserwasm builds (the Visual Studio build, a clean CLI build on Uno.Sdk 7.0.5, a clean CLI build on 7.0.0-dev.179; the VS build was run in both Firefox and Edge, the others checked through the boot manifest); 0 of 2 net10.0-browserwasm builds (7.0.5 and 7.0.0-dev.179 on .NET SDK 10.0.401).
Workaround 🛠️
Add to the app's Directory.Build.targets (or the csproj) to reset the metadata the markers inherit:
<Target Name="_FixUnoPriMarkerAssetMetadata" AfterTargets="_UnoFindPackageAssetMarkers">
<ItemGroup>
<ReferenceCopyLocalPaths Condition="'%(Extension)' == '.uprimarker'">
<DestinationSubPath>%(Filename)%(Extension)</DestinationSubPath>
<AssetType></AssetType>
<PathInPackage></PathInPackage>
</ReferenceCopyLocalPaths>
</ItemGroup>
</Target>With it the boot manifest lists all five assemblies (304 instead of 299), no fake DLLs are written to obj/.../fx/, the markers still reach bin/, and the app starts and renders in Firefox 159. Alternatively, target net10.0-browserwasm.
Affected platforms 📱💻🖥️
No response
Uno.Sdk version (and other relevant versions) 📦
| OS | Windows 11 Pro (26200) |
| .NET SDK | 11.0.100-rc.3.26522.148 (wasm-tools workload 11.0.100-rc.1.26425.128); 10.0.401 for the passing rows |
| Uno.Sdk / Uno.Templates | 7.0.5 (Uno.WinUI 7.0.32); also 7.0.0-dev.179 (Uno.WinUI.Runtime.WebAssembly.Browser 7.1.0-dev.90) |
| Dev Server host | Not involved (build output defect) |
| uno-devserver CLI | Not involved |
| Platform / target | WebAssembly (Skia) net11.0-browserwasm; Firefox 159.0.1 and Edge 155.0.4283.45 |
| IDE | Visual Studio 2026 18.10 (original build); reproduced with the CLI |
| Account | Not relevant |
IDE version 🧑💻
No response
Anything else we need to know? 💬
- Found by: manual check in the IDE-04 work folder (
20261105-103003-stable, appUnoApp4from the Visual Studio wizard) after the report "the WASM build on Firefox does not proceed past the Uno splash screen". The automated IDE-04 case only checks that the build succeeds, so it stays green. - Related: uno#26154 (open, 2026-11-06: the same package folder
lib/<tfm>/Uno.UI.Runtime.WebAssembly.Browser/build/is published as web assets). Removing that folder from the package would probably remove this package's marker and so the startup crash, but not theUno.Fonts.*collision; the fix belongs in the marker target. [browser] Check unique relative path for assemblies dotnet/runtime#123341 (the relative-path uniqueness check that exposes the bug; it replaced a file-name check from [browser] Use WebAssembly SDK for runtime tests dotnet/runtime#120330, which did not collide because marker and DLL have different file names). [wasm] Move app-local vs runtime-pack conflict resolution into ComputeWasmBuildAssets (after .NET 12 branch) dotnet/runtime#129741 (open: plans to move more conflict resolution intoComputeWasmBuildAssets). No duplicate found withgh search issuesin unoplatform/uno ("uprimarker", "Could not load file or assembly Uno.UI.Runtime.WebAssembly.Browser", "net11 wasm splash"). - Firefox also logs "WebGPU is disabled by blocklist" and "Failed to create WebGL context" on this machine. These are unrelated: the build with the workaround renders in the same browser.
- Not checked:
dotnet publish(Release) output, andnet10.0-browserwasmbuilt with the .NET 11 SDK (it needs thewasm-tools-net10workload, which is not installed here; thenet10.0TFM resolves the 10.0.12 pack, which has no dedup step).
Activity
fix: Keep .uprimarker from posing as its assembly (fixes unoplatform#…