Skip to content

Commit eda82da

Browse files
committed
chore: attempt to workaround dotnet/aspnetcore#64041
Context: dotnet/aspnetcore#63970 Context: dotnet/aspnetcore#64041 Context: dotnet/runtime#120790 Context: dotnet/sdk#51269 Context: dotnet/aspnetcore#64041 (comment) .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*?" As the files are from the [Microsoft.NET.Workload.Mono.Toolchain.Current.Manifest-10.0.100-rc.2][0] NuGet package, and there are only two available versions, and the *current* `%(KnownWebAssemblySdkPack.WebAssemblySdkPackVersion)` value is `10.0.0-rc.2.25502.107`, let's try using `10.0.100-rc.2.25502.107`! Will it work? 🤷‍♂️ [0]: https://www.nuget.org/packages/Microsoft.NET.Workload.Mono.Toolchain.Current.Manifest-10.0.100-rc.2/10.0.100-rc.2.25502.107
1 parent 5e356c3 commit eda82da

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Directory.Build.targets

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,12 @@
161161
<PackageReference Update="Xamarin.AndroidX.SwipeRefreshLayout" Version="1.1.0.28" />
162162
</ItemGroup>
163163

164+
<ItemGroup Condition=" $(NETCoreSdkVersion.StartsWith('10.0.100-rc.2.')) And $(TargetFramework.StartsWith('net10.0')) ">
165+
<KnownWebAssemblySdkPack Update="@(KnownWebAssemblySdkPack)">
166+
<WebAssemblySdkPackVersion>10.0.100-rc.2.25502.107</WebAssemblySdkPackVersion>
167+
</KnownWebAssemblySdkPack>
168+
</ItemGroup>
169+
164170
<Target Name="ValidateSolutionPath" BeforeTargets="Build">
165171
<Error Condition="$(MSBuildThisFileDirectory.Contains(' '))"
166172
Text="The Uno.UI Solution cannot build with a space in the path. Consider changing to a path without spaces."/>

0 commit comments

Comments
 (0)