- Home /
Issue with using external DLL build against .NET 4.0
Hello, So I'm having trouble with importing a dll build against .NEt 4.0. I'm wondering is it even possible to use something like that in unity?
I'm trying to use this -> http://cudafy.codeplex.com/. That needs framework 4.0, when I try to add this dlls into Plugins folder I'm getting internal compiler exception that says:
Internal compiler error. See the console log for more information. output was: Unhandled Exception: System.TypeLoadException: Could not load type 'System.Runtime.Versioning.TargetFrameworkAttribute' from assembly 'Cudafy.NET'.
Any idea if that dlls are usable within Unity3d? Thank you
Answer by whydoidoit · May 26, 2012 at 10:43 PM
It's .NET 2.0 only I'm afraid.
Also a few bits of that are missing on phones etc.
Answer by Deniska · Jun 05, 2012 at 01:55 PM
Actually Unity3D 3.5 has been updated to C# 3.5. If the source code for this library is available you may try to recompile it for 3.5. If it do not use any 4.0 features like parallel for etc - it may help. Android and iOS devices works with .NET 2.0 only.
Your answer
Follow this Question
Related Questions
Why can't I build Web Player in Unity while I have no problems with building standalone versions? 2 Answers
DLL NOT FOUND EXCEPTION even after following procedure 0 Answers
DLLs work on Windows but not on Android 1 Answer
Unable to find type or namespace of imported DLL 0 Answers
How to use Custom DLL for Hololens 0 Answers