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
Starting with C# 7.1 features, a Main method (the entry point for an application) can be declared as async, and can return a Task. CC0068 incorrectly triggers stating that this method should be removed because it is unused. However, you cannot remove the Main method for an application otherwise it would not compile or run.
Coincidentally, if I change the Main method from async Task to just void Main, the rule does not get triggered as I would expect.
Starting with C# 7.1 features, a Main method (the entry point for an application) can be declared as async, and can return a Task. CC0068 incorrectly triggers stating that this method should be removed because it is unused. However, you cannot remove the Main method for an application otherwise it would not compile or run.
Coincidentally, if I change the Main method from async Task to just void Main, the rule does not get triggered as I would expect.
The text was updated successfully, but these errors were encountered: