unoplatform / Uno.Wasm.Bootstrap

A simple nuget package to run C# code in a WASM-compatible browser
Other
364 stars 57 forks source link

x64 configuration fails to set server threading options #837

Closed jeromelaban closed 4 months ago

jeromelaban commented 4 months ago

Repro

The app fails to start because the COEP/COOP headers are not set.

It is likely that: https://github.com/unoplatform/Uno.Wasm.Bootstrap/blob/9b559fc9a8b5e939fd99fa119a243e760ae3770d/src/Uno.Wasm.Bootstrap.Cli/Server/Startup.cs#L53

is not populated properly because the output path of the app contains x64 instead of nothing when building in AnyCPU platform.

Workaround

Create a solution configuration for x64, but use Any CPU for the Wasm project.

jeromelaban commented 4 months ago

Fixed in #842