I'm trying to create a C# application (.cs
files). Since I'm using Visual Studio Code, I have to use the command line in order to compile the project, but when I launch MSBuild, it generates a .dll
file.
MSBuild version : 15.8.169.51996
This is my .csproj
:
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.1</TargetFramework>
</PropertyGroup>
<PropertyGroup>
<LangVersion>latest</LangVersion>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Net.Compilers" Version="3.1.1">
<PrivateAssets>all</PrivateAssets>
</PackageReference>
</ItemGroup>
</Project>
Thanks in advance!