title: Visual Studio 2017, Build solution or Publish not generating an .EXE
body: <p>I have developed a <strong>C# console application</strong> that is working properly from inside the Visual Studio environment. When I choose "Build Solution" under "Release" (but also under "Debug") a <em>.DLL is generated</em>, <em>not an .EXE</em>. I'm able to generate the .EXE using command line ("c:\Windows\Microsoft.NET\Framework64\v3.5\csc.exe" followed by the path to the .cs file), but it should be possible to generate the .EXE from inside the Visual Studio environment.</p>
  
  <p>I have configured Visual Studio to use <em>"C:\c#projs" as my projects location</em> (menu path "Tools"->"Options"->"Projects and Solutions"->"Projects Location" instead of the default path under c:\Users\\Documents....</p>
  
  <p>Here is the <strong>project file "App01.csproj"</strong></p>
  
  <pre><code>&lt;Project Sdk="Microsoft.NET.Sdk"&gt;
  
    &lt;PropertyGroup&gt;
      &lt;OutputPath&gt;bin\&lt;/OutputPath&gt;
      &lt;OutputType&gt;Exe&lt;/OutputType&gt;
      &lt;RuntimeIdentifiers&gt;win10-x64&lt;/RuntimeIdentifiers&gt;
      &lt;TargetFramework&gt;netcoreapp2.1&lt;/TargetFramework&gt;
      &lt;StartupObject&gt;App01.SetDirDatesProgram&lt;/StartupObject&gt;
      &lt;Platforms&gt;AnyCPU;x64&lt;/Platforms&gt;
    &lt;/PropertyGroup&gt;
  
    &lt;PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'"&gt;
      &lt;OutputPath&gt;bin\&lt;/OutputPath&gt;
      &lt;RuntimeIdentifiers&gt;win10-x64&lt;/RuntimeIdentifiers&gt;
      &lt;PlatformTarget&gt;x64&lt;/PlatformTarget&gt;
      &lt;WarningLevel&gt;0&lt;/WarningLevel&gt;
    &lt;/PropertyGroup&gt;
  
    &lt;PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"&gt;
      &lt;OutputPath&gt;bin\&lt;/OutputPath&gt;
      &lt;RuntimeIdentifiers&gt;win10-x64&lt;/RuntimeIdentifiers&gt;
      &lt;PlatformTarget&gt;x64&lt;/PlatformTarget&gt;
      &lt;WarningLevel&gt;0&lt;/WarningLevel&gt;
    &lt;/PropertyGroup&gt;
  
  &lt;/Project&gt;
  </code></pre>
  
  <p>And here is the <strong>generated "App01.deps.json"</strong> file:</p>
  
  <pre><code>"runtimeTarget": {
      "name": ".NETCoreApp,Version=v2.1",
      "signature": "da39a3ee5e6b4b0d3255bfef95601890afd80709"
    },
    "compilationOptions": {},
    "targets": {
      ".NETCoreApp,Version=v2.1": {
        "App01/1.0.0": {
          "runtime": {
            "App01.dll": {}
          }
        }
      }
    },
    "libraries": {
      "App01/1.0.0": {
        "type": "project",
        "serviceable": false,
        "sha512": ""
      }
    }
  }
  </code></pre>
  
  <p>The "App01.deps.json" file was created by Visual Studio and contains (under the "<strong>runtime</strong>" key) "<strong>App01.dll</strong>" instead of "<strong>App01.exe</strong>". </p>
  
  <p><strong>My question is</strong>:
  What do I need to modify in Visual Studio in order to get (under the "runtime" key) "App01.exe" instead of "App01.dll" and obviously in order for App01.exe to be generated by Visual Studio so that I can deploy App01.exe elsewhere?</p>