first i have to say that i m in a learning state of unity but i m a developper since long time…
My problem is : in c# ,
i have done a project lib (.dll) witch do some stuff and use unityengine.dll
When i create a script that use my lib (adding my dll in my visal studio project reference) and type #using mylib; in a script, the compilation in visual is ok but when i swith to editor , it says me that mylib is not found. error message is :
“error CS0246: The type or namespace name `myLib’ could not be found. Are you missing a using directive or an assembly reference?”
I ve got the Indy version of unity. whats wrong ?
Another question is : Must i use Mono to develop my lib? or compiled dll is crossplateforme?
if its .net 2.0 compatible, you can just drop it into the asset folder and thats it.
after that a little using xy is enough to get it into your class.
The xy there is the namespace you used within your library, not its name or anything alike.
also, don’t do compilations in VS because they are worthless.
VS is supported as an ide, not a compilation path, and chances that you get wrong hints is pretty large normally. Unity is Mono 1.2.5 (which means <= .NET 2.0 at best)
As said above i did copy the external “.dll” file to Assets folder, which i need to use in my C# scripts. But there is still some problem showing the following error in the run of the UNITY 3D application.
Can someone suggest me what i need to solve this problem, I request for a faster response.