I’m having problem with getting unity to accept the dll files system.data and mono.data.sqliteclient.dll.
At first I got an error saying the version was too new, so I found old ones at OriginalDLL.com. But that only made VS15 work. Unity still wouldn’t accept them, saying “xx has non matching file name”.
I’ve checked that the files are only in one place, so it shouldn’t be confused about where to look whitch ones to use. They’re in the plugins/SQLitedlls folder, so that should be ok.
After fidling around, I’m got a new error:
Full error:
“ArgumentException: The Assembly System.Configuration is referenced by System.Data (‘Assets/plugins/System.Data.dll’). But the dll is not allowed to be included or could not be found.
UnityEditor.AssemblyHelper.AddReferencedAssembliesRecurse (System.String assemblyPath, System.Collections.Generic.List1 alreadyFoundAssemblies, System.String[ ] allAssemblyPaths, System.String[ ] foldersToSearch, System.Collections.Generic.Dictionary2 cache, BuildTarget target) (at C:/buildslave/unity/build/Editor/Mono/AssemblyHelper.cs:146)
UnityEditor.AssemblyHelper.AddReferencedAssembliesRecurse (System.String assemblyPath, System.Collections.Generic.List1 alreadyFoundAssemblies, System.String[ ] allAssemblyPaths, System.String[ ] foldersToSearch, System.Collections.Generic.Dictionary2 cache, BuildTarget target) (at C:/buildslave/unity/build/Editor/Mono/AssemblyHelper.cs:152)
UnityEditor.AssemblyHelper.AddReferencedAssembliesRecurse (System.String assemblyPath, System.Collections.Generic.List1 alreadyFoundAssemblies, System.String[ ] allAssemblyPaths, System.String[ ] foldersToSearch, System.Collections.Generic.Dictionary2 cache, BuildTarget target) (at C:/buildslave/unity/build/Editor/Mono/AssemblyHelper.cs:152)
UnityEditor.AssemblyHelper.FindAssembliesReferencedBy (System.String[ ] paths, System.String[ ] foldersToSearch, BuildTarget target) (at C:/buildslave/unity/build/Editor/Mono/AssemblyHelper.cs:184)
UnityEditor.BuildPlayerWindow:BuildPlayerAndRun()”
In my code I have this:
using System.Data;
using Mono.Data.SqliteClient;
And:
string _strDBName = "URI=file:test.sql";
SqliteConnection _connection = new SqliteConnection(_strDBName);
SqliteCommand _command = (SqliteCommand)_connection.CreateCommand();
Previously I had IDb versions, but now i tried these. Still no dice. ![]()
I’m using unity 5.5.2f1.
Anybody know what to do??