title: Create Setup file for .Net Core Apps
body: <p>In my .Net Core App I want to create a setup file (.msi), but I struggle with the correct configuration.</p>
  <p>When I simply take all files from my debug folder and put them inside my &quot;Application Folder&quot; it works, but that's not how Microsoft (I guess) and me want it to work.</p>
  <p>Mainly I have two problems:</p>
  <ol>
  <li>When I take the &quot;Primary output&quot; of my project and create a Shortcut to this, the Shortcut tries to start the .dll instead of my .exe file.</li>
  </ol>
  <p><a href="https://i.stack.imgur.com/lbf0I.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lbf0I.png" alt="enter image description here" /></a></p>
  <ol start="2">
  <li>When I create the .msi file and install my project there is no &quot;runtimes&quot; folder and I manually need to create it inside my &quot;Application Folder&quot;. Is there a way to automatically include it into my .msi?</li>
  </ol>
  <p>Thanks for your advice!</p>