Hi
I own a pro license, i have to make a dll in .net version 2.0 or 3.5.
Can anybody tell me any tutorial on how to use these dlls in unity C# script.
I see a tutorial on C based dlls that uses [DllImport] to specify the dll and use their exported methods using extern “C”.
However .net C# does not support extern “C”. So i don’t understand how to do things in C#.
Thanks in advance
Just copy the dll to your project folder, in your script you add a reference to it by saying "using myDllNamespace. Make sure it is compiled for .Net 2.0.
extern c and dll import is for regular cdecl based dlls from C / C++, not .NET assemblies 
I have successfully added dll and unity recognizes the namespace defined in the dll.
Now i have another problem, the classes that are defined in my .Net C# are invisible to unity, for example i had a class “Class1” in my C# application, when i use its dll in unity, it looks something like that
.
.
using myDllNamespace; // Successfully recognized
.
.
void Update()
{
myDllNamespace.myClass obj = new myDllNamespace.myClass();
}
I get error that myClass does not exist in the myDllNamespace.
Please help
I know thats potentially laughable, but did you define it as public so it can be used from the outside at all?
also if you are using the namespace you normally won’t need the namespace anymore to create it etc
Thanks for your help
problem is solved, i wasn’t using it as public, so i was surprised why i cannot access it.
Thanks 