title: .net Core 2.0 - Package was restored using .NetFramework 4.6.1 instead of target framework .netCore 2.0. The package may not be fully compatible
body: <p>I have a .net core 2.0 console app.  I'm trying to read files from TFS using the following: </p>
  
  <p><a href="https://stackoverflow.com/questions/15346851/how-to-get-a-file-from-tfs-directly-into-memory-i-e-dont-want-to-read-from-f">How to get a file from TFS directly into memory (i.e., don&#39;t want to read from file system into memory)?</a></p>
  
  <p>I head over to nuget and install <code>Microsoft.TeamFoundationServer.ExtendedClient</code> and run into this: </p>
  
  <p><a href="https://i.stack.imgur.com/LU6nO.png" rel="noreferrer"><img src="https://i.stack.imgur.com/LU6nO.png" alt="enter image description here"></a></p>
  
  <blockquote>
    <p>Package 'Microsoft.AspNet.WebApi.Client 5.2.2' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETCoreApp,Version=v2.0'. This package may not be fully compatible with your project.</p>
  </blockquote>
  
  <p>Even after suppressing the warning, I still get the error and can't reference the library.  How can I get this reference resolving?  </p>
  
  <p>Very easy to repro: </p>
  
  <ol>
  <li>New .net core 2.0 console app</li>
  <li>Copy the method from the above question</li>
  <li>Try to install the nuget package </li>
  </ol>