Skip to content

Main method not recognized after async #5598

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

Closed
jefraire opened this issue May 24, 2018 · 1 comment
Closed

Main method not recognized after async #5598

jefraire opened this issue May 24, 2018 · 1 comment

Comments

@jefraire
Copy link

The guide asks us to convert the Main method to an async type that returns a Task. This causes an issue with the execution of the console application. I receive error CS5001 Program does not contain a static 'Main' method suitable for an entry point. Removing the async designation allows the program to run, but prevents the use of the ML package as indicated by the guide.

@BillWagner
Copy link
Member

Thanks for reporting this. It's fixed in PR #5333 which should go live in the next day or two.

In the meantime, the fix is to update the language version from 7.0 to 7.1 (or newer).

Closing as it is fixed in #5333.

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

No branches or pull requests

4 participants