Search code examples
c#dllregistration

vs c# Publish doesn't register my .dll


I'm using Visual Studio to "Publish" my application, but when I install it on another PC I get an error for a missing .DLL

Is there a setting in the properties that I'm overlooking maybe?

This is very frustrating because on my development PC it works.

Solution Explorer

It is called FK623Attend.dll

FKAttendDLL.cs Code

This is the FKAttendDLL.cs Code

DLL Properties

This is the DLL Properties

The Original Program doesn't have the DLL in the solution... It was registered during installation.

Thanks in advance


Solution

  • right click on the dll and go to properties. then set "Copy to Output directory" to " always copy" .then publish... Let me know if it works