Forum Discussion
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?
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
- vrdavebOculus StaffIs it an option to download Newtonsoft.Json 4.0? They may have fixed the issue there. See http://stackoverflow.com/questions/11868790/reference-conflict
- 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.
- lwolfe26Honored GuestI'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?
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 2 months ago