I have a Portable Library which I am using for a Windows Phone application. In that same Portable Library, I have a couple of content files (Build Action = Cont
var assembly = typeof(PegHelper).GetTypeInfo().Assembly; using (var stream = assembly.GetManifestResourceStream("Parsers.Peg.SelfDef.xml")) using (var reader = new StreamReader(stream)) { string xmlText = reader.ReadToEnd(); return XDocument.Parse(xmlText); }