x


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

more ▼

asked May 26 '12 at 10:41 PM

maynull gravatar image

maynull
31 7 9 11

What are you wanting to use it for?

May 26 '12 at 10:43 PM whydoidoit
(comments are locked)
10|3000 characters needed characters left

2 answers: sort voted first

It's .NET 2.0 only I'm afraid.

Also a few bits of that are missing on phones etc.

more ▼

answered May 26 '12 at 10:43 PM

whydoidoit gravatar image

whydoidoit
33k 11 23 100

(comments are locked)
10|3000 characters needed characters left

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.

more ▼

answered Jun 05 '12 at 01:55 PM

Deniska gravatar image

Deniska
0

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x231
x204
x12
x10
x3

asked: May 26 '12 at 10:41 PM

Seen: 1115 times

Last Updated: Jun 05 '12 at 01:55 PM