I am trying to publish a WinForms c# application, but whenever I do, regardless of x86 or x64, I get an error on the target machine, saying that the .dll is missing. I have tried various solutions, but nothing seems to work, from adding the files manually, to switching the output to either x86 or x64, nothing works; the file doesn't get created if I publish it.
The only thing that actually works, is if I copy the whole of the release/debug folder on the target machine. That, however, is undesirable, as I don't want the user to actually have/see all those files. How do I solve the error?
To create a new setup project
To add an existing setup project to a solution