{"id":16786,"date":"2018-01-09T15:00:00","date_gmt":"2018-01-09T15:00:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/premier_developer\/?p=16786"},"modified":"2019-02-14T20:23:09","modified_gmt":"2019-02-15T03:23:09","slug":"async-main-is-available-but-hidden","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/premier-developer\/async-main-is-available-but-hidden\/","title":{"rendered":"Async Main() is available, but hidden"},"content":{"rendered":"<p>Check out this quick tip on unlocking the new features of C# 7.1 from Premier Developer consultant <a href=\"https:\/\/www.linkedin.com\/in\/ben-williams-0310b73\/\" target=\"_blank\">Ben Williams<\/a>.<\/p>\n<hr>\n<p>Ever try to use async\/await in your Main method of a .NET app? You couldn\u2019t before, but now you can. I just posted a quick tip about enabling this by turning on C# 7.1 features in Visual Studio (they are not enabled by default). <\/p>\n<p><a href=\"https:\/\/blogs.msdn.microsoft.com\/benwilli\/2017\/12\/08\/async-main-is-available-but-hidden\/\">https:\/\/blogs.msdn.microsoft.com\/benwilli\/2017\/12\/08\/async-main-is-available-but-hidden\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Check out this quick tip on unlocking the new features of C# 7.1 from Premier Developer consultant Ben Williams. Ever try to use async\/await in your Main method of a .NET app? You couldn\u2019t before, but now you can. I just posted a quick tip about enabling this by turning on C# 7.1 features in [&hellip;]<\/p>\n","protected":false},"author":581,"featured_media":37840,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[80],"tags":[106,148,114,116],"class_list":["post-16786","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-net","tag-net","tag-asynchronous","tag-ben-williams","tag-c"],"acf":[],"blog_post_summary":"<p>Check out this quick tip on unlocking the new features of C# 7.1 from Premier Developer consultant Ben Williams. Ever try to use async\/await in your Main method of a .NET app? You couldn\u2019t before, but now you can. I just posted a quick tip about enabling this by turning on C# 7.1 features in [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-json\/wp\/v2\/posts\/16786","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-json\/wp\/v2\/users\/581"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-json\/wp\/v2\/comments?post=16786"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-json\/wp\/v2\/posts\/16786\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-json\/wp\/v2\/media\/37840"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-json\/wp\/v2\/media?parent=16786"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-json\/wp\/v2\/categories?post=16786"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-json\/wp\/v2\/tags?post=16786"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}