Problem c# : using my lib for a script

hi,

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?

thanks for any answer…

Plugins are a pro-only feature.

Ok but m’y lib is c#lib and not a c or c++ lib.

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)

Si i dont havé to do #using mylib; in my script but just access to m’y lib objet with namespace.myobject?

its

using namespace;

but you can naturally also access them with the full classifier that includes the namespace

thx dreamora you were right, forget to compil my lib in 2.0 (my default is 3.5) and copy it in asset folder. :?

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.

Thanks in Advance.