An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
Hi @AsynchronousTexx 229 , Welcome to Microsoft Q&A,
You can choose to use a command line or you can use the compiler to create it directly.
1.Create a directory first
mkdir testProject
cd testProject
dotnet new console
edit program.cs then
dotnet run
Create a .NET console app project named "HelloWorld".
Start Visual Studio 2022.
On the start page, choose Create a new project.
On the Create a new project page, enter console in the search box. Next, choose C# or Visual Basic from the language list, and then choose All platforms from the platform list. Choose the Console App template, and then choose Next.
In the Configure your new project dialog, enter HelloWorld in the Project name box. Then choose Next.
- In the Additional information dialog:
- Select .NET 8 (Preview).
- Select Do not use top-level statements.
- Select Create.
Best Regards,
Jiale
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.