I am trying to port a project to Unity 2018, using IL2CPP since .NET is being deprecated. In this project I use MSAL which works perfectly fine with .NET scripting backend, however when using IL2CPP the UWP app crashes because of improper IL2CPP conversion. I found IL2CPP generated code tries to load DLLs because some of the P/Invokes required by MSAL are not found. Examples are: kernel32.dll!GetNativeSystemInfo and advapi32.dll!RegOpenKeyEx. Worth mentioning that MSAL internally takes a dependency on mscorlib.dll. Eventually the code calls to LoadLibrary and it fails because UWP app does not have permissions to load libraries outside of app container boundaries. Is this a bug or just an unsupported scenario in the current release? I've found this problem with other assemblies too. If .NET is being deprecated, this seems a critical issue to fix.