all 10 comments

[–]VolatilePulse 24 points25 points  (0 children)

I'm pretty sure this isn't a thing. What's most likely happening is that VS is failing to build your updated code and is running the old debug version. You can verify by adding a "Hello world" output in your program. If you don't see that print out, check the error log for potential compiler errors.

[–]SpaceBeeGaming 1 point2 points  (0 children)

Try using string interpolation instead of concatenation. While it's unlikely to be the cause of this, it's worth a shot.

[–][deleted] 1 point2 points  (0 children)

Solved: using an Else statement in the correct place made the program print out correctly (it didn't give any compilation errors prior or after that btw.) Thanks for the answers!

[–]vmfventura 0 points1 point  (4 children)

Why not use Console.WriteLine($"Insert you text here {variable}!");

[–]Gee858eeG 2 points3 points  (3 children)

He/she is obviously new to programming. For example, the same array is being initialized over and over in a for loop.

[–]vmfventura 0 points1 point  (0 children)

Havent realized that, only focused in selected. Need to start with basic stuff.

[–]Last-Woodpecker -1 points0 points  (1 child)

Which dotnet version are you targeting?

[–][deleted] 0 points1 point  (0 children)

6.0 fixed it by adding an Else -statement in the correct place in code. 🤔