0

C# VS won't print to console with Console.WriteLine

Below is the code I'm trying to run. I can't get VS to print anything to the console. Weird because it was working perfectly fine last night. When I do ctrl F5 it says it exited with code 0. Tried adding a readline at the end, didn't change anything. At one point there was a red squiggly line under Console and it said it didn't exist, but that has since gone away. Any help would be much appreciated. using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace sololearn.conditionals.and.loops { class Program { static void Main(string[] args) { Console.WriteLine("success"); } } } One thing to note is that this is a new console app I opened under the same solution (not sure what exactly a solution is tho :p). The original app from last night works perfectly fine.

18th May 2020, 12:27 AM
Ezra Klinghoffer
Ezra Klinghoffer - avatar
1 Odpowiedź
0
I tested the code and it print success
18th May 2020, 2:40 AM
4lx
4lx - avatar