I knew it was possible, but never took the time to have a closer look at how to do it.
With embedded resources you can embed whole files (binary and text) in your assembly. Today I created a Console application that provides help when you pass the '/?' switch. The helpfile is a plain textfile, embedded in the assembly.
Here's how it is done:
private static string GetFileFromResources(string filename){Assembly assembly;assembly = Assembly.GetExecutingAssembly();Stream stream = assembly.GetManifestResourceStream("Type assembly namespace here" + "." + filename);StreamReader sr = new StreamReader(stream);string file = sr.ReadToEnd();return file;}