5 ms·
oh, neat. I recently needed to export some functions from a C# project to be used by C++ code, but at the time I researched it (June 2024), the dllexport projec
by etra0 2y ago
oh, neat. I recently needed to export some functions from a C# project to be used by C++ code, but at the time I researched it (June 2024), the dllexport project seemed to be frozen (last commit before that date was on 2021).
Thanks to NativeAOT, though, it seems that you can do this kind of stuff without extra dependencies which is great too!
- rpeden 2y agoIt works quite well especially in .NET 9! And exporting to WASM works nearly identically to DllExport. I used that to shift all the heavy lifting to .NET 9 AOT compiled to WASM in a fun little side project I've been working on: https://evo.ryanpeden.com https://evo.ryanpeden.com
- rasmuskl 2y agoCan you share more on this? Any examples that helped you or anything you've written on the WASM .NET topic?
- rpeden 2y agoNot yet - I just created a browser-wasm project using the .NET CLI and then experimented with it. I spent a bunch of the digging through .targets files to see what optimization options were available. I plan to put the source on GitHub shortly so others can use it as an example. Just need to clean things up a little first.
- rasmuskl 2y agoSounds good. It is a jungle to find the right optimization options. It's not getting that much publicity.