Beginner here in c# using Visual Studio. I've been trying to run a loop, but it keeps giving me Warning MSB3026
. I'm not sure why, here's the code,
Console.WriteLine("Would you like to play: Y/N");
do
{
if (Console.ReadLine() == "y")
{
Console.WriteLine("Good");
}
} while (Console.ReadLine() == "N");
I've had a similar issue before, and usually, I just use task manager and close visual studio to eliminate any background tasks that are getting in the way of what I'm trying to do. However, in this case, no background tasks are running. I was wondering how to fix the warning, and how to get the code to work.