c# - Compiler error - exe does not contain a static 'Main' method suitable for an entry point -


i have compiler error shown in image , not able resolve - "consults.exe not contain static 'main' method suitable entry point". program contain main method.

the error message

public static int main(string[] args)  {      program s = new program();      s.name();      string d = console.readline();      return 0;  } 

in console application, compiler requires main() function void , not return such value.


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -