I wrote a Main method in one of my classes. My startup object says Not set. When you click on it, nothing is displayed in the drop-down menu. Why can't I choose the main method for my launch object? I want to start my main method only by pressing ctrl + F7, but nothing happens. Below is a very short Main method that I use.
static void Main(string[] args)
{
Program c = new Program();
c.consoleread();
}
source
share