title: VS2017 - Project load failed - Duplicated linked item found in the project
body: <p>I'm unable to get my project to load if an included Nuget package includes files that exist in my project.  </p>
  
  <p>My Nuget package contains a <code>appsettings.json</code> file, and since my project also has an <code>appsettings.json</code> file, I get the following error in Visual Studio 2017:</p>
  
  <pre><code>(load failed) - Duplicated linked item found in the project: "C:\users\user\.nuget\packages\mypackage\contentFiles\any\netcoreapp1.1\appsettings.json"
  </code></pre>
  
  <p>If I remove the appsettings file from my project (not the Nuget package), the project loads fine, but the file is needed for the project to work.  </p>
  
  <p>I can't seem to remove the appsettings file from the nuget package, but this might be my only option. 
  '<code>dotnet pack</code>' seems to include this file even though my csproj file is not referencing it in the <code>"CopyToPublishDirectory"</code></p>
  
  <p>So the question is:
  How to exclude certain files from being packaged (via <code>dotnet pack</code>)?
  Or how to load a project where duplicated linked items exist?</p>