title: Create a standalone exe file in Visual Studio 2019
body: <p>I would like to create an exe file from my WPF project which can work without other project files and which can be ran on different computers.
  Currently, I'm using the Publish function in Build &gt; Publish ProjectName, with these options:</p>
  <p>Profile name: FolderProfile <br/>
  Delete existing files: false <br/>
  Configuration: Release | Any Cpu <br/>
  Target framework: net5.0-windows <br/>
  Deployment mode: Framework-dependent <br/>
  Target runtime: Portable <br/>
  Target Location: \bin\Release\net5.0-windows\publish\ <br/></p>
  <p>Even if successfully published, I found various files in the target location and when I copied the exe in a different folder, externally to the project folder, it didn't work and no window appeared.</p>
  <p>Any suggestion? Thank you!</p>