Skip to content

hello_auto sample: Cannot find entry point #8

@megakraken

Description

@megakraken

Hello,

When trying to run the hello_auto.cs script with cscs /ac samples\hello_auto.cs I get the following error message:

Error: Specified file could not be executed.

System.ApplicationException: Cannot find entry point. Make sure script file contains method: 'public static Main(...)'
   at csscript.RemoteExecutor.InvokeStaticMain(Assembly compiledAssembly, String[] scriptArgs)
   at csscript.CSExecutor.ExecuteImpl()

I figured the /ac option should do the trick, what am I doing wrong?

For reference, the script looks like this:

using System;
using System.Windows.Forms;

void Main()
{	
    Console.WriteLine( "Hello World!" ); 
    MessageBox.Show( "Hello World!"); 
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions