❔ Why does this not show a console? It outputs in the debug below but a console does not appear
15 Replies
You seem to have created a windows form application (winforms), please choose console application.
$newproject
When creating a new project, prefer using .NET over .NET Framework, unless you have a very specific reason to be using .NET Framework.
.NET Framework is now legacy code and only get security fix updates, it no longer gets new features and is not recommended.
https://cdn.discordapp.com/attachments/569261465463160900/899381236617855016/unknown.png
I always chose Win Forms console or not
it always worked
If you are going to be using a console. Create a console application
If you want to use Winforms, but no console. Create a winforms project.
Why is this here
Attach
Usually means attach to a debugger
It should say start.
\
Yeah, you don't need that.
This is what i created
Oh
i see
Wrong one
Thanks
What workloads have you installed?
You can check that by searching for the program 'Visual Studio Installer'
Then press modify on your VS version, and then show that.
If you want both, a console and winforms stuff (for some reason)
u can use PInvoke to either create a console or to attach it to the parent process
https://learn.microsoft.com/en-us/windows/console/attachconsole
https://learn.microsoft.com/en-us/windows/console/allocconsole
https://learn.microsoft.com/en-us/windows/console/freeconsole (To Remove it)
The parent process ID for attachconsole is -1 or uint.MaxValue (depending on how u use PInvoke)
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.