title: Xamarin PCL Embedded Resource
body: <p>I'm trying to create a very basic Xamarin app using Xamarin.Forms. Currently I have a PCL that only contains one small class and a file called TestPage.xml (on the root of the project). This XML file is set to EmbeddedResource, do not copy. </p>
  
  <p>I'm trying to load that file from within my android project's OnCreate method using (in this case my PCL is called X):</p>
  
  <pre><code>var assembly = typeof(MainActivity).GetTypeInfo().Assembly;
  Stream stream = assembly.GetManifestResourceStream("X.TestPage.xml");
  </code></pre>
  
  <p>This returns null. I have therefore tried looking on Stack for answers and found people using this statement to find the correct path:</p>
  
  <pre><code>Assembly.GetExecutingAssembly().GetManifestResourceNames();
  </code></pre>
  
  <p>However; this returns a completely empty string array - nothing AT ALL. </p>
  
  <p>Any idea's why I can't find my file?</p>