Choose your own adventure

Every time I try to run the code in this project, even if I haven’t added anything yet, I get the error message: Program doe not contain a static ‘Main’ method suitable for an entry point.

For the record, this is the code that the project loads with:
using System;

namespace ChooseYourOwnAdventure
class Program
static void Main(string args)

  // Start by asking for the user's name:
  Console.Write("What is your name?: ");
  string name = Console.ReadLine();
  Console.WriteLine($"Hello, {name}! Welcome to our story.");



Update: It seems to start happening after the first time I save the code, even if I haven’t changed anything.

I copied your code, and ran it in place of mine in the project, and am unable to replicate your error. If the error persists, and you’ve already tried refreshing your web browser, you should check out this link:
It contains information regarding which browsers and devices work best along with instructions to make sure all of the necessary browser plug-ins are up to date. Good luck && happy coding!

1 Like