title: Missing DLL in docker image after copying published tree inside
body: <p>I am currently experimenting with using JIB for packaging and deploying a dotnet project not written by me (I am not very familiar with dotnet).</p>
  
  <p>I have the dotnet SDK installed (and visual studio 19) on my windows machine and after invoking "dotnet publish -c Release" on my solution which contain a project X and a test project X_test I end up with a bin/Release/netcoreapp2.1\publish folder.</p>
  
  <p>In here I can run "dotnet X.dll" and the application starts.</p>
  
  <p>Now I want to deploy said published folder to a docker image.  My first attempt was using <code>mcr.microsoft.com/dotnet/core/runtime:2.1</code> which caused </p>
  
  <pre><code>It was not possible to find any compatible framework version
  The specified framework 'Microsoft.AspNetCore.App', version '2.1.1' was not found.
    - Check application dependencies and target a framework version installed at:
        /usr/share/dotnet/
    - Installing .NET Core prerequisites might help resolve this problem:
        https://go.microsoft.com/fwlink/?LinkID=798306&amp;clcid=0x409
    - The .NET Core framework and SDK can be installed from:
        https://aka.ms/dotnet-download
  </code></pre>
  
  <p>I then tried using <code>mcr.microsoft.com/dotnet/core/aspnet:2.1</code> which gave </p>
  
  <pre><code>C:\Users\m86194\git\microsvc-operational-information&gt;docker run -it  operational-information-ms:0.0.1-SNAPSHOT bash
  Error:
    An assembly specified in the application dependencies manifest (Operational_Information.deps.json) was not found:
      package: 'Elasticsearch.Net', version: '6.0.0'
      path: 'lib/netstandard1.3/Elasticsearch.Net.dll'
  </code></pre>
  
  <p>There is an "Elasticsearch.Net.dll" file in the root of <code>bin\Release\netcoreapp21\publish</code> folder, but not elsewhere.</p>
  
  <p>I believe there is something about the build process I am missing.</p>
  
  <p>Suggestions?</p>