title: Can the Main entry-point function be async?
body: <p>I'm using .NET Framework, and I'm wanting to call an awaitable function in my <code>Main</code> entry-point function.</p>
  
  <p>I'm using the <code>async</code> keyword on the function, but it keeps giving me <a href="https://bingdev.cloudapp.net/BingUrl.svc/Get?selectedText=Program%20does%20not%20contain%20a%20static%20%27Main%27%20method%20suitable%20for%20an%20entry%20point&amp;mainLanguage=C%23&amp;errorCode=CS5001" rel="nofollow noreferrer"><code>CS5001</code></a> <em>Program does not contain a static 'Main' method suitable for an entry point</em>. Although it doesn't say anything about it not being <code>async</code>.</p>
  
  <p>It seems this error is related to the problem.</p>