Run and observe output
Context: Run the Hello World app using dotnet run and observe the output. This verifies your .NET 10 setup.
Run your Hello World application using dotnet run and observe the output.
Run the Application
Section titled “Run the Application”cd HelloWorlddotnet runExpected Output
Section titled “Expected Output”Hello WorldWith Different Messages
Section titled “With Different Messages”// Modify Program.csConsole.WriteLine("Welcome to .NET 10!");Console.WriteLine($"Current time: {DateTime.Now}");Run Output Example
Section titled “Run Output Example”Welcome to .NET 10!Current time: 4/8/2026 10:30:45 AMTroubleshooting
Section titled “Troubleshooting”- Command not found: .NET SDK not installed or not in PATH
- Build errors: Check syntax in Program.cs
- Wrong directory: Ensure you’re in the project folder with .csproj
# Rebuild and rundotnet cleandotnet builddotnet run