I have downloaded and installed v5.0.0-preview.5
. My project is targeting net5.0
but C# 9.0
is not working. How can I enable C#
As per October 2020,
The .csproj should be as such:
Exe
net5.0
You can add
if you wish, but it should be optional.
OutputType can be adapted, of course, and you'll need the .NET 5 SDK.
See for instance this blog for more information.