开发者

c# deployment: install additional file in the installation directory

开发者 https://www.devze.com 2023-03-10 17:31 出处:网络
how to install additional fi开发者_运维技巧le such as some excel or webpage shortcut in the installation directory so that my executable should be able to access that file? please helpAdd the file to

how to install additional fi开发者_运维技巧le such as some excel or webpage shortcut in the installation directory so that my executable should be able to access that file? please help


Add the file to your project.
Set the build action to "content".
Set "copy to output directory" to "copy always".
The file should be included in the same folder as the rest of your deployment. You should be able to see it by building it and looking in the \bin\release or the \bin\debug folder. If it's not there, click on the Application Files button and see if it shows up there.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消