title: Visual Studio 2019 Exports C# Program as DLL instead of EXE?
body: <p>I am very confused because I created a new project in Visual Studio 2019. I have tried this three separate times with different projects, and each time it exports as a DLL instead of an EXE. Here are the steps to reproduce this problem:</p>
  
  <blockquote>
    <ol>
    <li>New project</li>
    <li>Console App (.NET Core)</li>
    <li>Set details for new project, and hit the "Create" button</li>
    <li>Add Microsoft.Win32.Registry NuGet package to project</li>
    <li>Add the following code:</li>
    </ol>
  </blockquote>
  
  <pre><code>using Microsoft.Win32;
  using System;
  
  namespace Key_Statistics_Startup_Changer {
      class Program {
          static void Main(string[] args) {
              if (args[0] == "CREATE_STARTUP") {
                  RegistryKey rkey = Registry.CurrentUser.CreateSubKey(@"Software\Microsoft\Windows\CurrentVersion\Run");
                  rkey.SetValue("Key Statistics", @"C:\Program Files\Key Statistics\Key Statistics.exe");
              }
              else if (args[0] == "REMOVE_STARTUP") {
                  RegistryKey rkey = Registry.CurrentUser.CreateSubKey(@"Software\Microsoft\Windows\CurrentVersion\Run");
                  rkey.DeleteValue("Key Statistics");
              }
          }
      }
  }
  </code></pre>
  
  <blockquote>
    <ol start="6">
    <li>Build and run project</li>
    </ol>
  </blockquote>
  
  <p>When I do this, the program does create or remove the desired registry from startup (what the code is trying to accomplish), when I input arguments through Visual Studio. However, when this project is built, my <code>Key Statistics Startup Changer\bin\Debug</code> folder gives me a sub-directory <code>netcoreapp2.1</code> with the following files:</p>
  
  <blockquote>
    <p>Key Statistics Startup Changer.deps.json<br>
    Key Statistics Startup Changer.dll<br>
    Key Statistics Startup Changer.pdb<br>
    Key Statistics Startup Changer.runtimeconfig.dev.json<br>
    Key Statistics Startup Changer.runtimeconfig.json<br></p>
  </blockquote>
  
  <p>I am positive that I have the right folder where it would export, and every time I re-create the steps (making sure I don't select C# DLL project), this happens.</p>
  
  <p>What's the deal here?</p>