title: Problem referencing transitive dependencies when building a specific .NET Core project in TeamCity
body: <p>I have a solution with multiple projects, the notable projects are:</p>
  
  <ul>
  <li><code>ContractProject</code></li>
  <li><code>DataProject</code></li>
  <li><code>WebProject</code></li>
  </ul>
  
  <p><code>WebProject</code> is a .NET Core project, the other two are .NET Framework.</p>
  
  <p>This is the file structure, including the <code>csproj</code> and <code>sln</code> files:</p>
  
  <p><a href="https://i.stack.imgur.com/A0rUe.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/A0rUe.png" alt="enter image description here"></a></p>
  
  <p><code>DataProject</code> references <code>Dapper</code>, which is a NuGet package.</p>
  
  <p>When attempting to run the build configuration in TeamCity, I get the following (slightly reduced, redacted) error:</p>
  
  <pre><code>DapperWorklistRepository.cs(4,7): error CS0246: The type or namespace name 'Dapper' could not be found (are you missing a using directive or an assembly reference?) [REDACTED_PATH_TO_DATAPROJECT_CSPROJ_FILE]
  ......
  Build FAILED.
  ......
  Process exited with code 1
  Step Build (.NET Core (dotnet)) failed
  </code></pre>
  
  <p>This is my only build step (.NET Core):</p>
  
  <p><a href="https://i.stack.imgur.com/98mKm.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/98mKm.png" alt="enter image description here"></a></p>
  
  <p>Any idea what I'm doing wrong? I have a feeling it may be something to do with the web project not being able to reference the projects one level back? I have tried setting the required paths in many different ways with no avail.</p>