You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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!");
}
The text was updated successfully, but these errors were encountered:
Hello,
When trying to run the
hello_auto.cs
script withcscs /ac samples\hello_auto.cs
I get the following error message:I figured the
/ac
option should do the trick, what am I doing wrong?For reference, the script looks like this:
The text was updated successfully, but these errors were encountered: