title: Prevent a Console App (.NET Core) from printing "exited with code 0." in VS2019
body: <p>When I start a Console App (.NET Core) with Ctrl+F5 (Start Without Debugging) in Visual Studio Community 2019 (Version 16.3.1), the following message is appended in the Console window at the end:</p>
  
  <blockquote>
    <p>C:\HelloWorld\bin\Debug\netcoreapp3.0\HelloWorld.exe (process 1672) exited with code 0.</p>
  </blockquote>
  
  <pre><code>using System;
  
  namespace HelloWorld
  {
      class Program
      {
          static void Main(string[] args)
          {
              Console.WriteLine("Hello World!");
          }
      }
  }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/yi9tf.png" rel="noreferrer"><img src="https://i.stack.imgur.com/yi9tf.png" alt="Console output"></a></p>
  
  <p>Is there any way to prevent Visual Studio 2019 from printing this message? I tried the solution from <a href="https://stackoverflow.com/questions/19199742/is-there-a-way-to-prevent-visual-studio-from-printing-thread-exited-statements-i">preventing a similar message from appearing in the Output Window</a>, by changing the option: Tools > Options > Debugging > Output Window > Process Exit Messages = Off, but it has no effect in the Console Window.</p>
  
  <p><a href="https://i.stack.imgur.com/e3xP9.png" rel="noreferrer"><img src="https://i.stack.imgur.com/e3xP9.png" alt="Visual Studio Options"></a></p>
  
  <p>Note: this message is not shown in Visual Studio 2017. It is only shown in Visual Studio 2019, and only on .NET Core apps.</p>