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:

Internal compiler error. See the console log for more information. output was:
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.

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 :smiley: