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.
精彩评论