title: How to correctly specify dependency information in nuspec file while creating Nuget package?
body: <p>I'm trying to create Nuget package from a Visual Studio 2017 class Library first time. It is a .NET Framework 4.6.2 project.
  The class library is referencing some other nuget packages, dlls, exes which are in References section under Solution Explorer.</p>
  <p>Here are the steps I took after looking at some youtube videos and Microsoft documentation:</p>
  <p>Right click project and select Properties.
  Build option, set Configuration to Release. Saved and closed project properties.
  Opened csproj file and changed Configuration to Release</p>
  <pre><code>&lt;Configuration Condition=&quot; '$(Configuration)' == '' &quot;&gt;Release&lt;/Configuration&gt;
  </code></pre>
  <p>Now build the project in Release mode. I can see dlls under</p>
  <pre><code>MyProject\bin\Release and also under MyProject\bin\Debug
  </code></pre>
  <p>Then I create the spec file using</p>
  <p>nuget spec
  Opened it and made appropriate changes and then</p>
  <p>nuget pack MyProject.nuspec</p>
  <p>I am getting number of warnings like both for Debug and Release directory:</p>
  <pre><code>WARNING: NU5100: The assembly 'bin\Debug\Encryption.dll' is not inside the 'lib' folder and hence it won't be added as a reference when the package is installed into a project. Move it into the 'lib' folder if it needs to be referenced.
  </code></pre>
  <p>although the Class Library (which I am creating Nuget), has a packages.config and has references:</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
  &lt;packages&gt;
    &lt;package id=&quot;Encryption&quot; version=&quot;1.1.0&quot; targetFramework=&quot;net462&quot; /&gt;
      ...
      ...
      ...
  &lt;package id=&quot;TeraData&quot; version=&quot;16.20.8&quot; targetFramework=&quot;net462&quot; /&gt;
  &lt;/packages&gt;
  </code></pre>
  <p>Since I am getting warnings, I tried entering dependency information in the nuspec file. Here is what my nuspec file looks like</p>
  <pre><code>   &lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
      &lt;package &gt;
        &lt;metadata&gt;
          &lt;id&gt;ProjectTitle&lt;/id&gt;
          &lt;version&gt;1.0.0&lt;/version&gt;
          &lt;title&gt;ProjectTitle&lt;/title&gt;
          &lt;authors&gt;auther name&lt;/authors&gt;
          &lt;requireLicenseAcceptance&gt;false&lt;/requireLicenseAcceptance&gt;
          &lt;description&gt;desc of package&lt;/description&gt;
          &lt;releaseNotes&gt;release notes text&lt;/releaseNotes&gt;
          &lt;copyright&gt;Copyright info&lt;/copyright&gt;
          &lt;tags&gt;some tages&lt;/tags&gt;
      
          &lt;dependencies&gt;
            &lt;dependency id=&quot;Encryption&quot; version=&quot;1.1.0&quot; /&gt;
      ...
            &lt;dependency id=&quot;TeraData&quot; version=&quot;16.20.8&quot; /&gt;
          &lt;/dependencies&gt;
        &lt;/metadata&gt;
      &lt;/package&gt;
  </code></pre>
  <p>But still get same warnings. If you can please provide a sample how dependency info in nuspec should look like, that would really help!
  Please advise if I'm missing anything!</p>