Skip to content

Commit 2ecc095

Browse files
committed
chore: attempt to workaround dotnet/aspnetcore#64041
Context: dotnet/aspnetcore#63970 Context: dotnet/aspnetcore#63970 (comment) Context: dotnet/aspnetcore#64041 Context: dotnet/aspnetcore#64041 (comment) Context: dotnet/runtime#120790 Context: dotnet/sdk#51269 .NET 10 RC2 broke WebAssembly, causing apps to crash: [MONO] * Assertion at /__w/1/s/src/runtime/src/mono/mono/metadata/assembly.c:2718, condition `<disabled>' not met Error at Mc (dotnet.runtime.fn94ls2wwa.js:3:172298) at dotnet.native.ggch313emy.wasm:0xac62 at dotnet.native.ggch313emy.wasm:0x43c51 at dotnet.native.ggch313emy.wasm:0x42301 at dotnet.native.ggch313emy.wasm:0x42422 at dotnet.native.ggch313emy.wasm:0x42465 at dotnet.native.ggch313emy.wasm:0x42438 at dotnet.native.ggch313emy.wasm:0x8cd9 at Module._mono_wasm_load_runtime [as mono_wasm_load_runtime] (dotnet.native.98v1chuo8c.js:8:113231) at dotnet.runtime.fn94ls2wwa.js:3:188734 dotnet.runtime.fn94ls2wwa.js:3 MONO_WASM: mono_wasm_load_runtime () failed [object Object] The fix in dotnet/sdk#51269 is to update `%(KnownWebAssemblySdkPack.WebAssemblySdkPackVersion)`. The question is "update *to what*?" `%(WebAssemblySdkPackVersion)` refers to the [Microsoft.NET.Sdk.WebAssembly.Pack][0] NuGet package version, and the only `-rc.2` version doesn't work. Using the `-rc.1` version with RC2 *also* doesn't work. This thought appears unviable: whatever version specified there needs to be a published NuGet package version, and wherever the fix is, it doesn't appear to have been published yet. dotnet/aspnetcore#63970 presents an alternative workaround: > The issue in .NET 10 RC2 SDK is related to publishing fingerprinted > assets in WebAssembly based projects. The workaround is to disable > fingerprinting. This can be done by settting `$(WasmFingerprintAssets)`=false. Try it! Does It Work? [0]: https://www.nuget.org/packages/Microsoft.NET.Sdk.WebAssembly.Pack
1 parent ac923f2 commit 2ecc095

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/SamplesApp/SamplesApp.Skia.WebAssembly.Browser/SamplesApp.Skia.WebAssembly.Browser.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@
3535

3636
<!-- Keep full exception strings in release -->
3737
<UseSystemResourceKeys>false</UseSystemResourceKeys>
38+
39+
<!-- Attempt workaround for https://github.com/dotnet/aspnetcore/issues/63970 -->
40+
<WasmFingerprintAssets>false</WasmFingerprintAssets>
3841
</PropertyGroup>
3942

4043
<ItemGroup>

src/SamplesApp/SamplesApp.Wasm/SamplesApp.Wasm.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@
4444

4545
<!-- Keep full exception strings in release -->
4646
<UseSystemResourceKeys>false</UseSystemResourceKeys>
47+
48+
<!-- Attempt workaround for https://github.com/dotnet/aspnetcore/issues/63970 -->
49+
<WasmFingerprintAssets>false</WasmFingerprintAssets>
4750
</PropertyGroup>
4851

4952
<PropertyGroup Condition="'$(Configuration)'=='Debug'">

0 commit comments

Comments
 (0)