4
I developed a console application in C# that makes use of a referenced dll. After batch build and generating the application executable, I tried to run it on a computer that did not have this dll, of course an error occurred. Soon after I passed the dll to the computer and left in the same folder of . exe and the same occurred.
I know I need to somehow link this dll at build time, or something like that, but I don’t know how. I wonder how to generate this executable so that it works on another computer?
Try via
Project > Add reference...
and then make sure that the DLL is in the folderbin\debug
(orrelease
, depending on the context used) of your application– Tiago César Oliveira