I have two database projects DB_A and DB_B. Project DB_A references DB_B.
I added a database reference by pointing to DB_B.dbschema at
C:\SourceParent\DB Projects\DB_B\sql\debug\DB_B.dbschema
When I build project DB_A on my local machine it works fine.
Now I want to build this on my TFS build server, but I get the following error
File D:\Builds\SourceParent\Build_Name\DB_B\sql\debug\DB_B.dbschema does not exist
I have a build for DB_B on my build server, but it's at a different path (the build definition doesn't necessarily match the project name).
I think I could add a build event in my build definition to copy the .dbschema file to the correct location on the server, but I'd rather not do this. (This would require a special build template for each build definition.)
Is there some way I can make the TFS build point to a different location? Or some other nice way I can accomplish this?