Nethereum: Unity: Error when building with IL2CPP

I have a project that builds .NET4.X AOT with IL2CPP. I used the DLLs of net472dllsAOT.zip from release 4.8.0, which in itself do not show errors. Once I start to compiler, an error is shown reading ArgumentException: The Assembly WindowsBase is referenced by System.Reactive ('Assets/CoaBlockchainSDK/Plugins/Nethereum/System.Reactive.dll'). But the dll is not allowed to be included or could not be found.. When adding the WindowsBase.dll from my system to the project (as described here), compiling works but the app does not start due to some other errors (most likely because it is not on Windows). Building with mono works fine. I have tried previous releases, with net461dlls.zip, as well as netStandard but none of them seem to work. Was anyone able to build with IL2CPP or is it even supported?

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 22 (12 by maintainers)

Commits related to this issue

Most upvoted comments

Works now 🎉 . Thank you very much for your support @juanfranblanco.

Ok I have separated now the MM from the core Unity component. ?The issue was that the jslib was not inluded in other platforms, so in this scenario is much better to isolate both components for that platform only. image image If included you need to mark them as webgl so they are only included when compiling for the browser. image Example running Il2cpp, image

Release here: https://github.com/Nethereum/Nethereum/releases/tag/4.10.0