“Your .exe likely has a number of dependencies. If you don’t copy the DLL files along with the EXE, it will not work because it cannot resolve the dependencies. – Josh Knack”
My problem was that I copied only the Debug folder but in my project I have references to images that are in the Image folder who is not inside the Debug folder.
I just copied the Image folder next to the Debug folder. Now it works.
solved The exe in debug folder dosen’t work when I move it [closed]