C#的部署:在安装目录下安装其他文件

C#的部署:在安装目录下安装其他文件

问题描述:

如何安装额外的文件,如一些Excel或网页快捷方式在安装目录中,以便我的可执行文件应该能够访问该文件?请大家帮忙

how to install additional file such as some excel or webpage shortcut in the installation directory so that my executable should be able to access that file? please help

在Solution Explorer中,右键单击该文件,然后转到属性。设置复制到输出目录,以是否有更新的复制。您可能还需要将建设行动,以嵌入的资源,如果它是不是已经。

In the solution explorer, right click on the file and go to properties. Set "Copy to output directory" to "Copy if newer". You may also need to set "Build action" to "Embedded resource" if it is not already.