EF model is not embedded when running TFS Team Build
Posted: Wed 27 Feb 2013 11:29
Hello,
We have an assembly that contains an Entity Framework model. The model (edml) file has standard properties:
Build action: DevartEntityDeploy
Custom tool: DevartEfGenerator
Everything works fine on local development machine and the machine with non-TFS (Jenkins) build. However, we have to move our build environment to TFS server (with TFS 2012), and there our tests fail with the exception: "MetadataException: Unable to load the specified metadata resource".
The connection string is fine, but when I checked the output folders, I found that the resulting DLL file was much smaller than it should be, it simply lacked EF model. I see that on the local machine I can find the following files in the obj folder:
DataModel.csdl
DataModel.msl
DataModel.ssdl
However these files don't exist in obj folder on the TFS build server. But build process does not fail and the resulting DLL is generated but it lacks the model.
Again, this happens only on a TFS server (with dotConnect for Oracle 3.7 installed).
Do you have an idea what it can be?
Thanks in advance
We have an assembly that contains an Entity Framework model. The model (edml) file has standard properties:
Build action: DevartEntityDeploy
Custom tool: DevartEfGenerator
Everything works fine on local development machine and the machine with non-TFS (Jenkins) build. However, we have to move our build environment to TFS server (with TFS 2012), and there our tests fail with the exception: "MetadataException: Unable to load the specified metadata resource".
The connection string is fine, but when I checked the output folders, I found that the resulting DLL file was much smaller than it should be, it simply lacked EF model. I see that on the local machine I can find the following files in the obj folder:
DataModel.csdl
DataModel.msl
DataModel.ssdl
However these files don't exist in obj folder on the TFS build server. But build process does not fail and the resulting DLL is generated but it lacks the model.
Again, this happens only on a TFS server (with dotConnect for Oracle 3.7 installed).
Do you have an idea what it can be?
Thanks in advance