TrilonIO / aspnetcore-angular-universal

ASP.NET Core & Angular Universal advanced starter - PWA w/ server-side rendering for SEO, Bootstrap, i18n internationalization, TypeScript, unit testing, WebAPI REST setup, SignalR, Swagger docs, and more! By @TrilonIO
https://www.trilon.io
MIT License
1.46k stars 435 forks source link

Feature 'async main' is not available in C# 7.0. Please use language version 7.1 or greater. [C:\temp\aspnetcore-angular-universal-master\Asp2017.csproj] #738

Open woxingren opened 4 years ago

woxingren commented 4 years ago

I just download the latest version and try to run it, then get this compiler error. This problem is from asp.net. one workaround is found here: https://github.com/aspnet/AspNetCore/issues/2751

Basically, the workaround is to put <LangVersion>latest</LangVersion> inside the main <PropertyGroup> at the top, then no error anymore.

I post here to help anyone who have the same problem.