C# – Referencing a dll in C#


When I reference a dll in c#, it has my local path. So when I run it on another computer it can't find it. How can I add a dll so it isn't looking in my local folder?

When I run my program on another computer it says "can't find namespace, are you missing a using directive or assembly reference?"

I must be googling the wrong key words because I couldn't find it anywhere.

Best Solution

Right click on it in the References area, go to properties, and set "Copy Local" to True. This will copy the dll into your output/bin folder for distribution and should solve the dependency on a machine without the DLL.