runtime: [Blazor WASM] InvariantGlobalization causes error after upgrading to .Net 6 Preview 6
Describe the bug
In .Net6-preview-6, Blazor WASM apps stop working when enabling InvariantGlobalization
.
It worked in .Net 6 preview 5.
To Reproduce
Example: https://github.com/srpeirce/Blazor6-6/blob/main/Blazor6-6.Web/Blazor6-6.Web.csproj
Install dotnet 6 preview 6.
Create a new blazor project. Run the project - it works!
Goto csproj and add:
<InvariantGlobalization>true</InvariantGlobalization>
The Blazor app now fails to load, with error in console.
Exceptions (if any)
dotnet.6.0.0-preview.6.21352.12.js:1 /__w/1/s/src/mono/mono/metadata/icall.c:6619 <disabled>
550895 @ dotnet.6.0.0-preview.6.21352.12.js:1
blazor.webassembly.js:1 undefined
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1 RuntimeError: abort(undefined). Build with -s ASSERTIONS=1 for more info.
at abort (dotnet.6.0.0-preview.6.21352.12.js:1)
at _abort (dotnet.6.0.0-preview.6.21352.12.js:1)
at <anonymous>:wasm-function[5994]:0x13d6ec
at <anonymous>:wasm-function[2461]:0x78f19
at <anonymous>:wasm-function[2187]:0x6130b
at <anonymous>:wasm-function[6671]:0x15d556
at <anonymous>:wasm-function[6495]:0x154eb0
at <anonymous>:wasm-function[3347]:0xa8bfc
at <anonymous>:wasm-function[676]:0x1646f
at <anonymous>:wasm-function[304]:0xa0b5
Further technical details
Dotnet version: 6.0.100-preview.6.21355.2
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 1
- Comments: 23 (20 by maintainers)
Correct - the fix didn’t make it into Preview7. It will be fixed in RC1.
had same issue, I was scratching my head all day.