调试文件夹中的 exe 在我移动时不起作用

The exe in debug folder dosen't work when I move it

我需要将我的 c# 应用程序发送给我的同学,但是当我在项目的 Debug 文件夹中执行 .exe 文件时,应用程序可以正常打开。

当我将"Debug"文件夹复制到我的桌面时出现问题,我做了同样的事情,它不起作用。什么都没发生。

项目很大,代码很多。当我在 C:\Users\MyName\Source\Repos\UpdateMyDb2\UpdateMyDb\bin\Debug 中执行该应用程序时它正常打开,但是当我将 Debug 复制到桌面时它不起作用。 C:\Users\MyName\Desktop

"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"

我的问题是我只复制了 Debug 文件夹,但在我的项目中,我引用了不在 Debug 文件夹中的 Image 文件夹中的图像。

我刚刚将 Image 文件夹复制到 Debug 文件夹旁边。现在可以了。