I’m pretty new to Unity but starting to understand how it works.
I’ve downloaded the last Unity (2018.1) and changed the scripting runtime version to 4.x.
But I can’t find which System.Data.dll I should include in my project (I need it for my System.Data.SQLite library that I compiled).
If I check in Unity’s folders There are a lot of folders in MonoBleedingEdge/lib/mono : 4.0, 4.0-api, 4.5, 4.5.1-api …
I tried with a few System.Data.dll found in those folders and made sure to use a dll with the same version as the one used to compile my System.Data.SQLite library.
But I always get that “Loading script assembly “Assets/Plugins/System.Data.dll” failed!” when I run my game. Do you know why ? Or is there a possibility to have more details (like version of the dll expected)
Thank you for your answer but it doesn’t seem to work.
I’ve also tried to put the one from Visual Studio (linked by default when you create a C# project, the one which is used to compile my System.Data.dll)
I got it working a few minutes ago, I had to take the System.Data.dll from this path: “C:\Program Files\Unity\Editor\Data\MonoBleedingEdge\lib\mono\unityjit”
The System.Data.dll in this path tagets 4.X .net and can be added to unity Plugins folder
You can also go from Unity to edit/Project settings/Player and then look for the Script Runtime version* under Configuration and go to .Net 4.6 or equivalent.