command-line-api icon indicating copy to clipboard operation
command-line-api copied to clipboard

System.CommandLine.DragonFruit AOT Running Fail

Open tabzhang opened this issue 1 year ago • 1 comments

Unhandled exception. System.InvalidProgramException: Could not find a static entry point 'Main' that accepts option parameters. at Test2!<BaseAddress>+0x21477 at Test2!<BaseAddress>+0x227ae --- End of stack trace from previous location --- at Test2!<BaseAddress>+0x1916f0 at Test2!<BaseAddress>+0x1939e7 at Test2!<BaseAddress>+0x193913 at Test2!<BaseAddress>+0x2a5430 --- End of stack trace from previous location --- at Test2!<BaseAddress>+0x1916f0 at Test2!<BaseAddress>+0x1939e7 at Test2!<BaseAddress>+0x193913 at Test2!<BaseAddress>+0x2a53c8 at Test2!<BaseAddress>+0x375c9a

tabzhang avatar Sep 27 '24 02:09 tabzhang

I got a slightly different stack trace

Unhandled exception. System.InvalidProgramException: Could not find a static entry point 'Main' that accepts option parameters.
   at System.CommandLine.DragonFruit.EntryPointDiscoverer.FindStaticEntryMethod(Assembly, String )
   at System.CommandLine.DragonFruit.CommandLine.ExecuteAssemblyAsync(Assembly, String[], String, String , IConsole )
   at AutoGeneratedProgram.Main(String[]) in G:\Tests\CommandLineDragonFruit\obj\Release\net8.0\win-x64\Main.Program.g.cs:line 10
   at AutoGeneratedProgram.<Main>(String[])

justalemon avatar Nov 12 '24 11:11 justalemon