I have two database projects in separate solutions, for ease I'll call these DBProj_A and DBProj_B.
There are objects in DBProj_A that reference DBProj_B so in order that these objects can be resolved in the referencing project I have added a Database Reference which refers to DBProj_B dacpac.
Projects build locally with no issues.
I have TFS build definitions for both projects.
In DBProj_A build definition I have added DBProj_B to the 'Items to Build' and set it as the first item.
I've also added DBProj_B to DBProj_A source settings.
The issues arise when trying to build DBProj_A in TFS/Build agent..
First DBProj_B is built with no errors
Secondly DBProj_A is built but errors...
"C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\SSDT\Microsoft.Data.Tools.Schema.SqlTasks.targets (547): File "C:\Builds\1\Test\DBProj_A\src\DBProj_B\DBProj_B\bin\Debug\DBProj_B.dacpac" does not exist."
From what I can see DBProj_B is built into the src folder of DBProj_A but the DBProj_B.dacpac is then moved to the bin folder. So ...
C:\Builds\1\Test\DBProj_A\src\DBProj_B\DBProj_B\obj\Debug\DBProj_B.dacpac --> MOVED TO --> C:\Builds\1\Test\DBProj_A\bin\DBProj_B.dacpac
Total TFS newbie so apologies if this is a no brainer but how do I get it to reference the dacpac correctly or have I missed something at config??
Hopefully this makes sense :-)