When I try and use EntityFramework and MySQL on a Linux or Windows environment I run into the following problem:
Project 1: Contains EntityFramework edmx and logic to insert update data using the dbcontext class Project 2: References Project 1.
When I build the solution using msbuild the EntityFramework metadata files are embeded in Project1.dll
When I do a clean build with xbuild in a Linux environment or in a Windows environment the EntityFramework metadata files are missing
When you run the application you get the following error:
Unable to load the specified metadata resource.
I am using mono version 4.2.2
Does anybody know a solution for embedding the EntityFramework metadata files when using xbuild?