How To Store Files In An EXE

后端 未结 4 1596
轻奢々
轻奢々 2020-12-13 06:52

Alright, so I\'m working on programming my own installer in C#, and what I\'d like to do is something along the lines of put the files in the .exe, so I can do File.Copy(fi

4条回答
  •  生来不讨喜
    2020-12-13 07:25

    I'm guessing here, but if you are trying to store resources in your application before compilation, you can in the Project Explorer, right click a file you would like to add, chose properties and change the type to Embedded Resource.

    You can then access the embedded resources later by using the instructions from this KB: http://support.microsoft.com/kb/319292

提交回复
热议问题