How to compile all files to one exe?

Segev picture Segev · Aug 8, 2012 · Viewed 25.7k times · Source

I wrote a project in C# that uses a lot of images, Milk models and openGL and i want to pack everything in one exe so i can upload it to my site. Right now i got an exe that is depended on other files like jpgs etc'. I've tried using ILMerge but couldn't get it to work. Is there a simpler solution? thanks.

Answer

logicnp picture logicnp · Aug 8, 2012

You can put all your files/images into the exe as Embedded Resources.

See How to embed and access resources by using Visual C# (This link currently 404s)