Linker Tools Error LNK1287

invalid managed entry point function

The entry point is not valid for a managed image. The return type of a managed entry point function can only be void or int. The type of the parameter of a managed entry point function can only be void or String [].