title: Retrying 'FindPackagesByIdAsync' for source
body: <p>I have a <code>dotnet core</code> project which builds fine locally but throws the following error many times:</p>
  
  <pre><code>Retrying 'FindPackagesByIdAsync' for source 'https://mycontrol.pkgs.visualstudio.com/_packaging/f8292c33-blah-blah-blah-e5e14bb9ba87/nuget/v3/flat2/microsoft.net.test.sdk/index.json'.
    Response status code does not indicate success: 401 (Unauthorized).
  </code></pre>
  
  <p>This error appears in the VSTS build log for every package used in the project.</p>
  
  <p>Opening the link shows this:</p>
  
  <pre><code>{
  $id: "1",
  innerException: null,
  message: "Can't find the package 'microsoft.net.test.sdk' in feed 'MyFeeds'.",
  typeName: "Microsoft.VisualStudio.Services.NuGet.WebApi.Exceptions.PackageNotFoundException, Microsoft.VisualStudio.Services.NuGet.WebApi",
  typeKey: "PackageNotFoundException",
  errorCode: 0,
  eventId: 3000
  }
  </code></pre>
  
  <p>Though I do not have a <code>NuGet.Config</code> in the project folder, I do have one in the parent folder:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;configuration&gt;
    &lt;packageSources&gt;
      &lt;add key="_nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" /&gt;
      &lt;add key="_myget.org" value="https://dotnet.myget.org/F/mstestv2/api/v3/index.json" /&gt;
    &lt;/packageSources&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>I will also get this error (but only for 1 or 2 packages in the log):</p>
  
  <pre><code>C:\hostedtoolcache\windows\dotnet\sdk\2.1.701\NuGet.targets(121,5): error : Failed to retrieve information about 'specflow' from remote source 'https://apsourcecontrol.pkgs.visualstudio.com/_packaging/98e0f10f-afcb-4c74-a075-37c564e0408a/nuget/v3/flat2/specflow/index.json'. [D:\a\1\s\Testing\Tester\MsTester\MsTester.csproj]
  C:\hostedtoolcache\windows\dotnet\sdk\2.1.701\NuGet.targets(121,5): error :   Response status code does not indicate success: 401 (Unauthorized). [D:\a\1\s\Testing\Tester\MsTester\MsTester.csproj]
  </code></pre>
  
  <p>If all I get for an application is the first error then the build succeeds, but if I get 1 or more of the second error the build fails.</p>
  
  <p>What do I need to do in order to tell <code>dotnet core</code> where to source the packages from?</p>
  
  <p><strong>[EDIT]</strong> I have tried placing the <code>NuGet.Config</code> in the project folder, to no avail.</p>
  
  <p><strong>[EDIT-2]</strong> I have it working. The solution was to place the <code>NuGet</code> sources in the <code>csproj</code> file, as described here: <a href="https://stackoverflow.com/a/56231929/71376">https://stackoverflow.com/a/56231929/71376</a></p>