Adding .NET STANDARD DLL to unity
I want to add a Microsoft.ApplicationInsights.dll library to my VR project I tried many things but it still doesn't work on Android and I have few questions about that.
Are .NET Standard 2.0 libraries properly built by Unity and work on platforms other than Windows? If so, is it on Androda too?
How to properly add dependencies to the DLL library dropped into the Plugins folder. For example this ApplicationInsights.dll has reference to System.Diagnostics.DiagnosticSource, but this library has reference to System.Runtime.CompilerServices.Unsafe.dll and System.Memory.dll. Please explain how to add these libraries correctly.
Put all these DLLs in the Plugins folder?
Put the Microsoft.ApplicationInsights.dll into the Plugins folder and the dependencies in the csc.rsp file like this:
-r:System.Runtime.CompilerServices.Unsafe.dll -r:System.Diagnostics.DiagnosticSource.dll -r:System.Memory.dll
If the second way and if I have chosen API Compatibility Level: 4.x, will the system DLLs be imported in the .NET Standard 2.0 version if the main library has been imported in the .NET Standard version and has dependencies to them?
I tried to use this package https://github.com/Unity3dAzure/UnityApplicationInsights but the log information is missing (e.g. Stack Trace in Exception) and therefore I want to use a DLL from Microsoft.
Your answer
Follow this Question
Related Questions
Trying to use an external library in my Android project, but managed code stripping causes an error. 3 Answers
IL2CPP Android build with custom static libraries linked with GNU STL static library 0 Answers
Why are .NetStandard 1.0 libraries not working? 0 Answers
UnityPlayer packaged as an Android library module? 0 Answers
Importing an aar crashed my application - Unity 5.5.0f3 0 Answers