title: Synonyms in Database Projects
body: <p>I have two database. One database accesses tables in the other, via SYNONYMs. I have imported both databases into two separate projects in my solution.</p>
  
  <p>But when I build, I get an error:</p>
  
  <blockquote>
    <p>Error     SQL71501: Computed Column:
    [dbo].[AccountBase].[AccountCategoryCode] has an unresolved reference
    to object [CRM].[AccountBase].[AccountCategoryCode].</p>
  </blockquote>
  
  <p><code>[CRM].[AccountBase]</code> is a SYNONYM pointing to the other database.</p>
  
  <p>So, I created a Database Reference, and modified the SYNONYM to point at the other project, and got a reference called $(CRM). I then modified the SYNONYM to use that reference.</p>
  
  <p>But I am still getting the same error. Is it possible to achieve what I am trying to do? That is, import the two projects, and have them compile in the database project, using the database reference to point to the database?</p>