1. Create new console program 2. Set net6.0-windows/net5.0-windows 3. Set UseWindowsForms=true Now Console completely disabled, even if `<OutputType>Exe</OutputType>`.