Entity Framework metadata artifact not embeded when using xbuild and mono
<p>When I try and use EntityFramework and MySQL on a Linux or Windows environment I run into the following problem:</p>

<p>Project 1: Contains EntityFramework edmx and logic to insert update data using the dbcontext class
Project 2: References Project 1. </p>

<p>When I build the solution using msbuild the EntityFramework metadata files are embeded in Project1.dll</p>

<p><a href="https://i.stack.imgur.com/lapSx.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lapSx.png" alt="enter image description here"></a></p>

<p>When I do a clean build with xbuild in a Linux environment or in a Windows environment the EntityFramework metadata files are missing</p>

<p><a href="https://i.stack.imgur.com/ITE7n.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ITE7n.png" alt="enter image description here"></a></p>

<p>When you run the application you get the following error: </p>

<blockquote>
  <p>Unable to load the specified metadata resource.</p>
</blockquote>

<p>I am using mono version <strong>4.2.2</strong></p>

<p><strong>Does anybody know a solution for embedding the EntityFramework metadata files when using xbuild?</strong></p>