-
Notifications
You must be signed in to change notification settings - Fork 730
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Wasm] Add .NET 5 interpreter support #4322
Comments
Is this issue also relevant for .netstandard2.1 apps? I tried to apply it for a Blazor 3.2 WebAssembly app, but the <Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>netstandard2.1</TargetFramework>
<RazorLangVersion>3.0</RazorLangVersion>
<MonoWasmRuntimeConfiguration>threads-release</MonoWasmRuntimeConfiguration>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)'=='Debug'">
<MonoRuntimeDebuggerEnabled>true</MonoRuntimeDebuggerEnabled>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="3.2.0" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.Build" Version="3.2.0" PrivateAssets="all" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="3.2.0" PrivateAssets="all" />
<PackageReference Include="System.Net.Http.Json" Version="3.2.1" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Uno.Wasm.Bootstrap" Version="1.3.0-dev.42" />
<PackageReference Include="Uno.Wasm.Bootstrap.DevServer" Version="1.3.0-dev.42" PrivateAssets="all" />
</ItemGroup>
<!--<PropertyGroup Condition="'$(Configuration)'=='Debug'">
<DebugType>portable</DebugType>
<DebugSymbols>true</DebugSymbols>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)'=='Debug'">
<DefineConstants>$(DefineConstants);TRACE;DEBUG</DefineConstants>
</PropertyGroup>-->
</Project> Chrome versions is: Version 83.0.4103.97 (Official Build) (64-bit) The Run method from this example webassembly-threading-in-net throws an error: |
Thanks @tomasfabian. Could you provide the full error you're getting ? |
of course, this is from the VS output, is it good enough?: _System.NotSupportedException: Cannot start threads on this runtime. |
This looks like an issue with the runtime not being able to create threads, rather than the bootstrapper itself. Do you need to create a thread for your app, or is it just for testing ? Threading is still a work in progress at this point. |
I wanted to solve my threading issue with a StackExchange.Redis. It creates a thread underneath, I'm not able to change it... and I found this interesting Uno package. |
Fixed by unoplatform/Uno.Wasm.Bootstrap#288 |
The bootstrapper is now yet compatible with .NET5 target frameworks, as the mono CI does not bundle the proper libraries.
This issue is about adding support for .NET 5 runtime support for the interpreter only.
The text was updated successfully, but these errors were encountered: