I tried Copy to Output without any luck - for some reason my root path was not where the exit path was (which I used to think) ... Therefore, to abstract any headaches from other developers creating this project I did this:
var _assembly = System.Reflection.Assembly.GetExecutingAssembly();
XDocument xdoc = XDocument.Load(new StreamReader(_assembly.GetManifestResourceStream("TheNamespace.Api.TheFile.xml")));
Which, of course, requires the file to be an embedded resource.
source
share