Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.
Chapter 3. Creating an application using .NET 10.0
Create a basic C# console application to verify your .NET development environment. By compiling and running this simple project, you ensure that the SDK is correctly configured before you begin building complex applications.
Prerequisites
- Installed .NET 10.0 SDK
Procedure
Create a new console application in a directory named
<my-app>:dotnet new console --output <my-app>
$ dotnet new console --output <my-app>Copy to Clipboard Copied! Toggle word wrap Toggle overflow Run the application from its project directory:
dotnet run --project <my-app>
$ dotnet run --project <my-app>Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Verification
Verify that the application runs and displays the expected output:
Hello World!
Hello World!Copy to Clipboard Copied! Toggle word wrap Toggle overflow