I think when I did this I had to manually edit the proj file like so:
   <TargetFramework>netcoreapp3.0</TargetFramework>

Then you see it in the target framework list
    On Friday, 27 September 2019, 05:18:29 am GMT+1, Greg Keogh 
<gfke...@gmail.com> wrote:  
 
 Folks,
I'm keen to experiment with C# 8 features and get familiar early, but I can't 
get any project to use it. In Visual Studio 2019 16.2.3 I've tried to create 
Standard, Core and Framework projects of all the latest versions, then set the 
Build Advanced Language Version to 8 or preview, but it's never available.
I thought Core 3.0 projects could use C# 8, but the highest choice I have is 
2.2. So I installed 3.0 manually and dotnet --list shows me the following 
(truncated) as installed, but I never see 3.0 list in target frameworks.
>dotnet --list-runtimes
Microsoft.AspNetCore.App 3.0.0 [C:\Program 
Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 3.0.0 [C:\Program 
Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 3.0.0 [C:\Program 
Files\dotnet\shared\Microsoft.WindowsDesktop.App]>dotnet --list-sdks
3.0.100 [C:\Program Files\dotnet\sdk]

So I have two issues: (1) I can't pick Core 3.0 Framework (2) How on earth do I 
coax C# 8 into action?
Any advice would be most welcome. Perhaps there are really strict conditions or 
dependencies I'm not aware of.
Cheers,Greg
P.S. Public holiday in Melbourne for some sort of ball game. A horse race I can 
understand, but this?  

Reply via email to