Reputation: 2321
I am trying to use Mono.Data.Sqlite in my Assembly-CSharp-firstpass project. In MonoDevellop, I right click on the project, edit references, and add Mono.Data.Sqlite to the references. If I build from Mono, everything goes smoothly and and no errors are produced. When I move back to Unity3D, I always get the error saying that Mono.Data.Sqlite cannot be found. If I then close Unity + Mono and reopen both, the reference to Mono.Data.Sqlite is gone! Anyone know what is going on?
Upvotes: 1
Views: 4066
Reputation: 12208
If you want access to the DLLs you'll want to put them into a folder called "Plugins" in your Assets folder - Plugins are loaded first, so dotnet assemblies in plugins will be avaiable to you when you want to write code against them.
Upvotes: 1
Reputation: 2321
So after further Googling and Doc reading: Unity3D rebuilds the project files every time something changes in the Scene/Assets. This means that the added references were being reset and they couldn't be found by Unity.
The solution is to find the needed DLLs (Mono.Data.Sqlite in my case) and copy them to the Asset folder of the project.
Upvotes: 1