title: Compile a .NET Core project to .exe file instead of .dll file
body: <p>I'm trying to create a C# application (<code>.cs</code> files). Since I'm using <strong>Visual Studio Code</strong>, I have to use the command line in order to compile the project, but when I launch <strong>MSBuild</strong>, it generates a <code>.dll</code> file.</p>
  
  <blockquote>
    <p>MSBuild version : 15.8.169.51996</p>
  </blockquote>
  
  <p>This is my <code>.csproj</code>:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;Project Sdk="Microsoft.NET.Sdk"&gt;
    &lt;PropertyGroup&gt;
      &lt;OutputType&gt;Exe&lt;/OutputType&gt;
      &lt;TargetFramework&gt;netcoreapp2.1&lt;/TargetFramework&gt;
    &lt;/PropertyGroup&gt;
    &lt;PropertyGroup&gt;
      &lt;LangVersion&gt;latest&lt;/LangVersion&gt;
    &lt;/PropertyGroup&gt;
    &lt;ItemGroup&gt;
  
      &lt;PackageReference Include="Microsoft.Net.Compilers" Version="3.1.1"&gt;
  
        &lt;PrivateAssets&gt;all&lt;/PrivateAssets&gt;
      &lt;/PackageReference&gt;
    &lt;/ItemGroup&gt;
  &lt;/Project&gt;
  </code></pre>
  
  <p>Thanks in advance!</p>