C
C#3w ago
SeanOMik

Compiling C# as a WASM component

I'm trying to follow the guide here for compiling C# as a WASM component: https://component-model.bytecodealliance.org/language-support/csharp.html When I run dotnet build though, I get this error:
Restore complete (0.4s)
You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy
dotnet-guest-test failed with 1 error(s) (2.8s) → bin/Debug/net9.0/wasi-wasm/dotnet-guest-test.dll
/home/seanomik/.nuget/packages/microsoft.dotnet.ilcompiler.llvm/10.0.0-alpha.1.24525.6/build/Microsoft.NETCore.Native.targets(363,5): error MSB3073: The command ""\tools\\ilc" @"obj/Debug/net9.0/wasi-wasm/native/dotnet-guest-test.ilc.rsp"" exited with code 127.
Restore complete (0.4s)
You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy
dotnet-guest-test failed with 1 error(s) (2.8s) → bin/Debug/net9.0/wasi-wasm/dotnet-guest-test.dll
/home/seanomik/.nuget/packages/microsoft.dotnet.ilcompiler.llvm/10.0.0-alpha.1.24525.6/build/Microsoft.NETCore.Native.targets(363,5): error MSB3073: The command ""\tools\\ilc" @"obj/Debug/net9.0/wasi-wasm/native/dotnet-guest-test.ilc.rsp"" exited with code 127.
I'm on Arch Linux and installed dotnet-sdk-preview-bin to get dotnet 9.0
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server