Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

System.CommandLine.DragonFruit AOT Running Fail #2491

Open
tabzhang opened this issue Sep 27, 2024 · 1 comment
Open

System.CommandLine.DragonFruit AOT Running Fail #2491

tabzhang opened this issue Sep 27, 2024 · 1 comment

Comments

@tabzhang
Copy link

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

@justalemon
Copy link

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[])

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants