How do I add a file to a exe

后端 未结 4 1343
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-25 12:04

I have a program that plays a sound but if I run it on a different computer it says that the file isn\'t found how do I attach the file onto the exe so when someone plays the ex

4条回答
  •  忘掉有多难
    2021-01-25 12:23

    You can go the properties of the file, and under Copy to output Directory select, copy if newer

    enter image description here

    You can package the EXE with your c# program when you are ready to release it with an installer

提交回复
热议问题