Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unity can't load System.data.dll

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).

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

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 the version of the dll expected)

like image 335
user2088807 Avatar asked Aug 29 '26 20:08

user2088807


1 Answers

My Weeks Journey:

  • Stack Overflow

  • Unity Answers

Solution:

It took me a week to finally figure it out...

You need to use:

  • I18N.dll
  • I18N.West.dll
  • I18N.*.dll (Optional, they are region specific)
  • System.Data.dll

from C:\Program Files\Unity\Editor\Data\Mono\lib\mono\2.0

NOT the BleedingEdge path. Then it will work without errors... confirmed in the latest Unity 2018.2.6f1

like image 118
3 revsDDeathlonger Avatar answered Aug 31 '26 18:08

3 revsDDeathlonger



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!