Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.

Chapter 3. Creating an application using .NET 10.0


To ensure your development tools are properly configured, you can create a basic "Hello World" application. This process tests the core functionality of the .NET SDK, ensuring that you can successfully generate, build, and run projects from the command line.

Learn how to create a C# "Hello World" application.

Prerequisites

  • Installed .NET 10.0 SDK

Procedure

  1. Create a new console application in a directory named <my-app>:

    $ dotnet new console --output <my-app>
    Copy to Clipboard Toggle word wrap
  2. Run the application from its project directory:

    $ dotnet run --project <my-app>
    Copy to Clipboard Toggle word wrap

Verification

  • Verify that the application runs and displays the expected output:

    Hello World!
    Copy to Clipboard Toggle word wrap
Red Hat logoGithubredditYoutubeTwitter

Lernen

Testen, kaufen und verkaufen

Communitys

Über Red Hat Dokumentation

Wir helfen Red Hat Benutzern, mit unseren Produkten und Diensten innovativ zu sein und ihre Ziele zu erreichen – mit Inhalten, denen sie vertrauen können. Entdecken Sie unsere neuesten Updates.

Mehr Inklusion in Open Source

Red Hat hat sich verpflichtet, problematische Sprache in unserem Code, unserer Dokumentation und unseren Web-Eigenschaften zu ersetzen. Weitere Einzelheiten finden Sie in Red Hat Blog.

Über Red Hat

Wir liefern gehärtete Lösungen, die es Unternehmen leichter machen, plattform- und umgebungsübergreifend zu arbeiten, vom zentralen Rechenzentrum bis zum Netzwerkrand.

Theme

© 2026 Red Hat
Nach oben