sqlite-unity-plugin icon indicating copy to clipboard operation
sqlite-unity-plugin copied to clipboard

Error cs0433

Open odlands opened this issue 6 years ago • 2 comments

I am going through the walkthrough on medium.com but I run into this error when I build the solution:

CS0433: The type 'IDbConnection' exists in both 'System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' and 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'

I have found similar issues brought up elsewhere, but my issue is just different enough that I can't translate the solutions to work for my problem. Also, I'm fairly new to Unity so any help is greatly appreciated.

odlands avatar Sep 27 '19 16:09 odlands

I am having a similar issue which I believe is the same. My Unity version is 2019.3.0f3 and am getting the following after adding the Plugin files to my project.

Microsoft (R) Visual C# Compiler version 2.9.1.65535 (9d34608e) Copyright (C) Microsoft Corporation. All rights reserved.

error CS1703: Multiple assemblies with equivalent identity have been imported: '.../Assets/Plugins/sqLite/System.Data.dll' and '/Applications/Unity/Hub/Editor/2019.3.0f3/Unity.app/Contents/NetStandard/compat/2.0.0/shims/netfx/System.Data.dll'. Remove one of the duplicate references.

Any help would be great!

willett-developer avatar Jan 05 '20 23:01 willett-developer

@willett-developer Had the same issue, There are two copies of the System.Data being referenced, one from unity the other from this repository. I deleted the one provided and ran the sample code, it connect ran the INSERT and SELECT / logged response. I do not know what the differences are between the System.Data DLLs provided in unity and this repo are.

egeis avatar Mar 06 '20 20:03 egeis