开发者

Including Resources in Debug Build

I've finished development 开发者_开发技巧of my application and it contains three images in different PictureBoxes.

I've added them to the application by using the drop down option on the PicureBox itself, browsing to the image i made which is stored in the folder "above" the solution folder.

If i was to copy the solution folder (Which will not include the images as they are in the folder above) to a CD, would the images still work?

I've tried on my computer quickly and it does seem to work, but i don't want to risk handing it over and it not working properly.

Also using the publishing method will not work in this case as I need to hand over the solution folder/files.


The pictures get embedded into your .exe file as resources when it's compiled.

If you have to hand in your source code, include the images because they will be needed to build the project. If you're handing in executables only, then the image files are not required.


No. You would need to include the images in the same relative location on the CD.

Here's another alternative for including images in your release. Embedding Image Resources

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜