title: how to publish net framework desktop app images?
body: <p>Here we have library (dll) to control certain device automation, which is compatible with netframework 4.6 to 4.8</p>
  <p>We're triyng to make the solution scalable by containerizing.
  We saw that .net core 3.1 or net6 are easily could be containerized and pushed to Container Registry.</p>
  <p>As far as I know, tried couple times migrate our project to .net core or net6. But unfortunately at its best there gone all errors and build dependencies are resolved but library functions just don't do anything. Since the library was provided by device manufacturer there is no such thing that we could migrate whole library to net core or later.
  So the idea with migration is just halted.</p>
  <p>With windows containers and Docker desktop we are able to debug it from Visual Studio, but when I try to run that image from docker cli the container is just empty one.</p>
  <pre><code>C:\app&gt;dir
   Volume in drive C has no label.
   Volume Serial Number is 6412-AD3A
  
   Directory of C:\app
  
  05/24/2022  10:40 AM    &lt;DIR&gt;          .
  05/24/2022  10:40 AM    &lt;DIR&gt;          ..
                 0 File(s)              0 bytes
                 2 Dir(s)  21,031,567,360 bytes free
  </code></pre>
  <p>So if I publish it would be empty base image.
  From Visual Studio there is cool option to publish web app or desktop app to certain target such as FTP, IIS, Azure App Service and Azure Container Registry.</p>
  <p>But with project targetting Net framework 4.7.2 or 4.8 is there is not such thing only publish asssets to given folder.
  I understand, we could just bundle our built assets with base image and push it using docker cli.
  I'm wondering, since net framework 4.8 is not yet deprecated there must be way to publish it just from VS.</p>
  <p>Please share best practices with net framework app containerization.</p>