Trying to use:
static async Task Main(string args)
But build error gives:
error CS8107: Feature 'async main' is not available in C# 7.0. Please use language version 7.1 or greater.
These projects were just generated using 2.1, my console app even has defined in the proj:
<PropertyGroup> <OutputType>Exe</OutputType> <TargetFramework>netcoreapp2.1</TargetFramework> </PropertyGroup>
dotnet --info .NET Core SDK (reflecting any global.json): Version: 2.1.300 Commit: adab45bf0c Runtime Environment: OS Name: ubuntu OS Version: 16.04 OS Platform: Linux RID: ubuntu.16.04-x64 Base Path: /usr/share/dotnet/sdk/2.1.300/ Host (useful for support): Version: 2.1.0 Commit: caa7b7e2ba
Is there something I’m missing, or has c# 7.1 not been migrated to these packages?