C#的部署:在安装目录下安装其他文件 [英] c# deployment: install additional file in the installation directory

查看:114
本文介绍了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.

这篇关于C#的部署:在安装目录下安装其他文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆