title: My Visual Studio 2019 WPF app is setting a dll as the output when it should be an exe
body: <p>This is my first time trying to make a deployable program. After creating a nice little WPF XAML app that runs (i.e. I can run the executable in the bin folder), I am trying to wrap it in a setup program.  </p>
  
  <p>After following multiple directions online for both WiX and "Microsoft Visual Studio Installer Projects". Both make installer packages, but they are only targeting the dll file from the WPF XAML output when I as for the "Primary Output".  It seems this is stemming from the build of the WPF project.</p>
  
  <p>How do I adjust the primary output of the build process so it is included in the setup program?</p>
  
  <p>Screenshot of build output specifying the dll as the output file:</p>
  
  <p><a href="https://i.stack.imgur.com/xWgvC.png" rel="noreferrer"><img src="https://i.stack.imgur.com/xWgvC.png" alt="enter image description here"></a></p>
  
  <p><strong>To add more details:</strong></p>
  
  <p>This could be one <code>wpf(.net core)</code> application instead of one <code>wpf(.net framework)</code>. See the Output window in Elton's screenshot we can find the output is xx.dll instead of xx.exe. </p>
  
  <p>If we create a Installer project in this solution, right-click the Installer project=>Add=>Project Output=>Primary output to contain the WPF's output in installer project, only the xx.dll is considered as wpf's output, but not xx.exe. </p>
  
  <p>So after building the Installer project in VS, double-click the setup.exe(installer project's output), the wpf.exe is not well installed.</p>