Closed megakraken closed 11 months ago
It is a defect. The auto-class generation algorithm is missing static
modifier for the method.
I will do a quick fix but until it is available you can use lowercase main
as a workaround:
using System;
using System.Windows.Forms;
void main()
{
Console.WriteLine( "Hello World!" );
MessageBox.Show( "Hello World!");
}
Done. You can download the release from here: https://github.com/oleg-shilo/cs-script.net-framework/releases/tag/v3.30.7.0
Great, thanks alot!
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: