สร้างโปรเจ็กส์ด้วย Template แบบ Console Application
> dotnet new console -o Console6
จะได้ไฟล์
- Console6\Console6.csproj
- Console6\Program.cs
ไฟล์ Console6.csproj
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> <TargetFramework>net6.0</TargetFramework> <ImplicitUsings>enable</ImplicitUsings> <Nullable>enable</Nullable> </PropertyGroup> </Project>
ไฟล์ Program.cs
// See https://aka.ms/new-console-template for more information Console.WriteLine("Hello, World!");