title: How do I use dotnet pack to create a nuget package for .net core
body: <p>With all dependencies added to the package.  </p>
  
  <p>I've tried multiple ways but it looks like I might have to get messy to do it, adding a nuspec file on its own is not sufficient because of the way in which dependencies are resolved. </p>
  
  <p>To put this into perspective If I a package a .net framework project <strong>with</strong> a nuspec file and in the file point at the relevant output folder (for example bin\release)  of a build I get everything I need.  </p>
  
  <p>My use case is to run some acceptance tests (out of process) in a CI pipeline.  At this point I don't want to be accessing source control.</p>