1

I have created simple Console.WriteLine function, on building it says build failed. But doesnt show any error / warning

enter image description here

enter image description here

tbhaxor
  • 1,315
  • 2
  • 9
  • 35

3 Answers3

0

In my case I fixed this by restarting my PC

tbhaxor
  • 1,315
  • 2
  • 9
  • 35
-1

Check your build output. Sometimes you will have information about the error in the output. example: enter image description here

psj01
  • 2,723
  • 5
  • 25
  • 56
-2

Program class should be declared as public

public class Program
{
    public static void Main()
    {
        Console.WriteLine(1);
    }
}
as-if-i-code
  • 1,751
  • 1
  • 7
  • 15