Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
kirkokuev's avatar
10 years ago

0.6.0.0 Getting errors with standalone dlls

Getting multiple errors:
Assets/OVR/Scripts/OVRDisplay.cs(288,29): error CS0433: The imported type `System.Action' is defined multiple times
Assets/OVR/Scripts/OVRManager.cs(190,31): error CS0433: The imported type `System.Action`2' is defined multiple times

As far as I understand it has something to do with other dlls, that I am utilising in project, namely Newtonsoft.Json.dll. But I can't avoid using it, because my project is tied to those dlls (using Google API). So is there any workaround?

3 Replies

Replies have been turned off for this discussion
  • Hey, vrdaveb, thanks for a suggestion, you saved me some workhours. I have downloaded latest version of Json.Net from http://json.codeplex.com/. Then I replaced my Newtonsoft.Json.dll which was 2.0 with 4.0 from Json.Net to no avail (but error have changed). After some lurking I found out that the problem was with .Net version. So I replaced my old 2.0 dll with version 3.5 and then I have changed in project settings Api compatibility level to .NET 2.0. After these manipulations errors were gone and I managed to start the app.
  • I'm getting the same errors in 0.5.0.1, Unity 5.0.1p1, with a custom restsharp dll I need to use.

    Assets/OVR/Scripts/OVRDisplay.cs(270,29): error CS0433: The imported type `System.Action' is defined multiple times

    Assets/OVR/Scripts/OVRManager.cs(178,31): error CS0433: The imported type `System.Action`2' is defined multiple times


    My boss wrote the custom DLL. At first he was using .net 3.5 and I informed him Unity is stuck on .Net 2.0, so he rewrote it and compiled for .Net 2.0. Now when I import the DLL into the plugins folder, it conflicts with the 2 oculus scripts, throwing the errors mentioned.

    Anyone have ideas?