title: Creating nuget package for .Net Core library
body: <p>I have a .Net Core library project which i want to share with all our other projects. These other projects are developed in Classic 4.6.2 and ASP.NET Core. I want to share it using Nuget package. Since package needs to be private i will be hosting it on our server. The .net core library project i am trying to publish has the following project.json</p>
  <pre><code>{
    &quot;version&quot;: &quot;1.0.0-*&quot;,
  
    &quot;dependencies&quot;: {
      &quot;NETStandard.Library&quot;: &quot;1.6.0&quot;
    },
  
    &quot;frameworks&quot;: {
      &quot;netstandard1.6&quot;: {
        &quot;imports&quot;: &quot;dnxcore50&quot;
      }
    }
  }
  </code></pre>
  <p>I followed these guidelines [here][1] to create a package</p>
  <ol>
  <li>Created the .nuspec package manifest file using <code>nuget spec</code> command</li>
  <li>Updated nuspec file as per the suggestion</li>
  <li>Tried creating package with command <code>nuget pack MyProject.xproj</code>
  got error</li>
  </ol>
  <blockquote>
  <p>Please specify a nuspec or project file to use.</p>
  </blockquote>
  <ol start="4">
  <li><p>Looks like nuget does not recognize xproj So executed command <code>nuget pack MyProject.nuspec</code></p>
  <p>got warning</p>
  </li>
  </ol>
  <blockquote>
  <p>WARNING: 2 issue(s) found with package 'MyId'.</p>
  <p>Issue: Assembly outside lib folder. Description: The assembly
  'bin\Debug\netstandard1.6\MyProject.dll' is not inside the 'lib' folder and
  hence it won't be added as reference when the package is installed
  into a project. Solution: Move it into the 'lib' folder if it should
  be referenced.</p>
  <p>Issue: Assembly outside lib folder. Description: The assembly
  'bin\Release\netstandard1.6\MyProject.dll' is not inside the 'lib' folder
  and hence it won't be added as reference when the package is installed
  into a project. Solution: Move it into the 'lib' folder if it should
  be referenced.</p>
  </blockquote>
  <p>I have already already looked SO post [here][2] and [here][3] but it couldn't solve my issue</p>