✅ Console.WriteLine("a") isn't showing "a" in console but "Hello, World!"
Console.WriteLine("a") isn't showing "a" in console but "Hello, World!"
![No description](https://cdn.answeroverflow.com/1258688386349269033/Zrzut_ekranu_2024-07-05_093759.png)
11 Replies
try rebuilding it
but how ?
compile it again
ok I do it somehow
$helloworld
just in case
Just to be abundantly clear whats going on here: C# is a compiled language, not interpreted (Python, Javascript, etc).
When you want to run a C# program, you first need to build it into an executable. What happened above is that you had changed your source, but not re-compiled, so it was still running the old executable that had "Hello world" written in it.
$vscode
Follow the instructions here on getting started with DevKit for C# in VSCode: https://code.visualstudio.com/docs/csharp/get-started
Get started with C# and .NET in Visual Studio Code
Getting Started with C# and .NET Development in Visual Studio Code
Might help too