C# problem with MAIN and source

Asked

Viewed 130 times

-1

I was making a program in visual studio using the C# link until this error came up and I don’t know how to fix it: AJUDA POR FAVOR

and the code was this inserir a descrição da imagem aqui

Any suggestions to resolve this?

  • 2

    Post the code instead of the image

  • 1

    This doesn’t make sense, it’s all right. It can be project configuration that is outside the standard.

  • How did you create the project? You selected the Console Application template?

  • probably it was the project that gave error,but I do not know how to make it correct

1 answer

-1


From what I noticed your class is not inside a namespace.

The right thing would be:

namespace WpfApp1
{
    public class MinhaClasse
    {
        static void main(string[] args){

        }
    }
}
  • 2

    an excellent observation, but this is still not enough to reproduce the problem and affirm the solution

  • the main was even solved but not the original

  • Your project is a Consoleapplication?

Browser other questions tagged

You are not signed in. Login or sign up in order to post.