c# – Visual Studio 2022 Winforms Project reverts to Console project despite correct Csproj settings

This is a very simple, silly problem that Googling hasn’t resolved.

I’m getting a console popup running a winforms project in Visual Studio 2022, in .NET 7.

I’ve got the csproj file setup correctly, but altering the project type via the GUI, shown here, just causes it to flip back to console project. Can anyone point to the obvious gotcha that currently doesn’t appear via googling? None of my references appear to be specifically console targeted. Note the project itself runs, otherwise, as expected.

Thank you for any help offered!

Project Properties

Csproj file

Read more here: Source link