Get Resource from Assembly
using System.IO; using System.Reflection; internal class Util { public static string GetResource(string resourceName) { Assembly assembly = Assembly.GetExecutingAssembly(); TextReader textReader = new StreamReader(assembly.GetManifestResourceStream(resourceName)); string result = textReader.ReadToEnd(); textReader.Close(); return result; } }