Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7932837
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T21:08:20+00:00 2026-06-03T21:08:20+00:00

I have two database projects DB_A and DB_B. Project DB_A references DB_B. I added

  • 0

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?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T21:08:22+00:00Added an answer on June 3, 2026 at 9:08 pm

    I solved this by creating an environment variable $(DB_SCHEMAS) pointing to a directory on my machine (e.g. C:\dbschemas).

    Then I added a post build event in project DB_B to copy DB_B.dbschema to $(DB_SCHEMAS).

    I then added a database reference in project DB_A pointing to $(DB_SCHEMAS)\DB_B.dbschema. Note that Visual Studio will add this reference using a relative path. To fix this, I unloaded the project in Solution Explorer, and edited the hint path to use the $(DB_SCHEMAS) environment variable.

    Now I just added this environment variable on the TFS server and it will work as expected. Building project DB_B copies its .dbschema file to $(DB_SCHEMAS) (wherever that may be) and then building project DB_A references this scheme.

    The only downside is that my teammates all have to add this environment variable on their machines as well, otherwise they can’t build locally.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

OK I have two web projects WebProject1 & WebProject2. Both require database connectivity so
I have a Play Framework (1.2.4) project with PlayMorphia that has two different database
I have two SQL Server (2000) databases. Both are used for the same project,
Let's say I have two tables in a database: projects and users. I create
I have two Database, DB1 and DB2. How can I transfer data of DB1
I have two database one with relationship(no data) and another with out Relationship (with
I have two database tables with the following structure: actions: action_id int(11) primary key
Let's say I have two database instances: InstanceA - Production server InstanceB - Test
I have two classes that represent two different database entities. Their relationship is 1:m
I have a database two tables and a linking table that I need a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.