- Home /
Unity TestTools and External DLL conflict?
Greetings everyone.
I have a problem that I find weird. I have created some dll files that I want to use in my Unity project. I have compiled them with VS2012 and tested them outside of Unity and everything seems good. I have also Imported them successfully in Unity projects for test and again everything worked fine...until.. I tried to import Unity Test Tools in that project.
Now I have tried this and it seems that, when the projects has Unity Test Tools loaded, my external Dll cannot be loaded and this error message comes up:
Unhandled Exception: System.Reflection.ReflectionTypeLoadException: The classes in the module cannot be loaded.* at (wrapper managed-to-native) System.Reflection.Assembly:GetTypes (bool) at System.Reflection.Assembly.GetTypes () [0x00000] in :0 If I remove the dll, the error stops. If I remove Unity Test Tools the error also stops. Unity version is 4.3.3f1 Any Ideas? Thank you very much in advance for any help.*Internal compiler error. See the console log for more information. output was:
Answer by Kansokusha · Apr 16, 2014 at 08:46 AM
Answering my own post since I found what seems to be causing the problem.
I recompiled my Dll for .NET Framework 3.5 (it was 4.5 before) and the error seems to be fixed.
NOTE:
Though I can't say for sure what this was exactly since it is kinda beyond me, it looks like some sort of incompatibility between Mono and .Net 4.5(?)
The interesting part is that the incompatibility, was caused by the combination of my 4.5 built Dll and the Unity Test Tools.
Still not sure what exactly to make out of it, if anyone has any info on it please share :D
Your answer
Follow this Question
Related Questions
When creating unity playmode tests in a dll they dont't show up in the test runner 2 Answers
External dll: namespace recognized by mono, not by UT 2 Answers
Why can't I build Web Player in Unity while I have no problems with building standalone versions? 2 Answers
TestRunner playmode IPrebuildSetup test doesn't run 1 Answer
Adding Game Assembly causes type or namespace errors 0 Answers