Just tried it with one of my apps and the same thing happened. When I tried both Debug and Release. When I want an exe that I can execute I do the following:Create windows .exe
Navigate to project folder
dotnet publish -f net8.0-windows10.0.19041.0 -c Release -p:RuntimeIdentifierOverride=win10-x64 -p:WindowsPackageType=None
The navigation to the project folder should be done by Tools/CommandLine/Developer Command Prompt
Then you can copy the dotnet publish and paste it into the command window. Hit enter and it will create a windows exe that can be used. Not that I create a Release exe as it will run faster and actually never tried with Debug