How to dotnet build with local packages on windows build server
<p>I am using Team City to build a ASP.NET Core (target .NET) project. Dependency packages are deployed to the build server along with the project following this folder structure:</p>

<ul>
<li>Packages  </li>
<li>SolutionName

<ul>
<li>src

<ul>
<li>myproj.xproj</li>
</ul></li>
</ul></li>
</ul>

<p>I have a nuget.config file with <code>&lt;add key="globalPackagesFolder" value="..\..\packages"/&gt;</code></p>

<p>This corectly restores packages in VS and references seem to hold on build.
However, on the build server, <strong>dotnet build</strong> doesn't find the dependencies.</p>

<blockquote>
  <p>Error NU1001: The dependency ... could not be resolved</p>
</blockquote>

<p>Is there any way to specify the relative path of dependencies for dotnet build?</p>