I thought I'd do the VS 2019 Tutorials to get started with VS 2019. Got up to the 3rd tutorial.
went to compile the project and got the following errors.

My code is as exactly as it appears in the tutorial of the MS VS web site. So I don't think it is the code. It is the way VS is set up on my computer. This tutorial and code requires Net 5.0. But when I look at the menu item Help> About>
I see that the version of Net Framework installed is not 5.0?

I've read though the various blogs on this compile error and have not found a solution. Any thoughts please on what I may have done wrong?
Thanks Cam