December 2019
Intermediate to advanced
510 pages
11h 33m
English
As mentioned previously, in a plain console application template, there are two essential files: ProjectName.csproj and Program.cs. First of all, let's have a look at the .csproj file:
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> <TargetFramework>netcoreapp3.0</TargetFramework> </PropertyGroup></Project>
The format of the .csproj file is XML, just like earlier versions of the .NET Framework. The
Sdk="Microsoft.NET.Sdk" namespace refers to the SDK we want to use to build our project. The PropertyGroup node contains a set of properties, and it can be associated with some conditional behaviors. ItemGroup is a node that usually contains package references. In .NET Core, it is possible to ...