Stream: C#/.net-collaboration

Topic: Mono Runtime Support


view this post on Zulip Timmy Silesmo (Nov 21 2023 at 05:01):

I have looked into adding mono runtime support for the generator and tests. But currently we would end up with two very different implementations as Mono currently doesn't support the DllImport and UnmanagedCallersOnly attributes that are used for the NativeAoT-LLVM implementation. I added a comment to an issue on the dotnet runtime repository, in the hopes we can work with Microsoft to get this added to the mono runtime instead of having to generate a lot of C glue code.
For anyone interested: https://github.com/dotnet/runtime/issues/86984#issuecomment-1820241819

From @SteveSandersonMS link I've been trying out the pinvoke generation and found it can't yet generate real WebAssembly imports. There are two main reasons: It ignores pinvokes unless they corresp...

view this post on Zulip Timmy Silesmo (Nov 24 2023 at 07:35):

Have found a few bugs with the new additions to .net and wasm. Waiting for those to be resolved before pushing mono runtime support. https://github.com/dotnet/runtime/issues/95192

Description Rebuilding a project targeting the wasi-experimental workload when changing the arguments in the DllImport attribute doesn't result in a new wasm module to be built. @lewing Reproductio...

Last updated: Dec 13 2025 at 20:04 UTC