title: Nuget package creation - Class library that targets .NET framework 4.6.1 can not target correct framework
body: <p>I created a class library that targets .net framework 4.6.1 (so pretty much a blank canvas, with a single method to return a string, just for testing purposes). I want to make this into a nuget package. I'm following this article <a href="https://docs.microsoft.com/en-us/nuget/quickstart/create-and-publish-a-package-using-visual-studio-net-framework" rel="noreferrer">https://docs.microsoft.com/en-us/nuget/quickstart/create-and-publish-a-package-using-visual-studio-net-framework</a> , but when I get to "nuget pack" I get the following warning: </p>
  
  <pre class="lang-none prettyprint-override"><code>"WARNING: NU5128: Some target frameworks declared in the dependencies group of the nuspec and the lib/ref folder do not have exact matches in the other location. Consult the list of actions below:
  - Add a dependency group for .NETFramework4.6.1 to the nuspec"
  </code></pre>
  
  <p>I tried adding the dependency group to the .nuspec file:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;?xml version="1.0"?&gt; 
  &lt;package&gt;
    &lt;metadata&gt;
      &lt;id&gt;$id$&lt;/id&gt;
      &lt;version&gt;$version$&lt;/version&gt;
      &lt;title&gt;$title$&lt;/title&gt;
      &lt;authors&gt;Author&lt;/authors&gt;
      &lt;owners&gt;$author$&lt;/owners&gt;
      &lt;requireLicenseAcceptance&gt;false&lt;/requireLicenseAcceptance&gt;
      &lt;description&gt;H&lt;/description&gt;
      &lt;copyright&gt;Copyright 2019&lt;/copyright&gt;
      &lt;tags&gt;blah&lt;/tags&gt;
      &lt;dependencies&gt;
        &lt;group targetFramework=".NETFramework4.6.1" /&gt;
      &lt;/dependencies&gt;   
    &lt;/metadata&gt; 
  &lt;/package&gt;
  </code></pre>
  
  <p>and I also tried:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;?xml version="1.0"?&gt; 
  &lt;package&gt;
    &lt;metadata&gt;
      &lt;id&gt;$id$&lt;/id&gt;
      &lt;version&gt;$version$&lt;/version&gt;
      &lt;title&gt;$title$&lt;/title&gt;
      &lt;authors&gt;Author&lt;/authors&gt;
      &lt;owners&gt;$author$&lt;/owners&gt;
      &lt;requireLicenseAcceptance&gt;false&lt;/requireLicenseAcceptance&gt;
      &lt;description&gt;H&lt;/description&gt;
      &lt;copyright&gt;Copyright 2019&lt;/copyright&gt;
      &lt;tags&gt;blah&lt;/tags&gt;
      &lt;dependencies&gt;
        &lt;group targetFramework="net461" /&gt;
      &lt;/dependencies&gt;   
    &lt;/metadata&gt; 
  &lt;/package&gt;
  </code></pre>
  
  <p>I still get same error.</p>
  
  <p>I tried using older versions of nuget, where the warning message isn't shown, but the same problem persists (If I try to add via the package manager, it says it has no dependencies).</p>