C
C#2y ago
tab

❔ Why does this not show a console? It outputs in the debug below but a console does not appear

15 Replies
Buddy
Buddy2y ago
You seem to have created a windows form application (winforms), please choose console application. $newproject
MODiX
MODiX2y ago
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
tab
tabOP2y ago
I always chose Win Forms console or not it always worked
Buddy
Buddy2y ago
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.
tab
tabOP2y ago
Why is this here
tab
tabOP2y ago
Attach
Buddy
Buddy2y ago
Usually means attach to a debugger It should say start.
tab
tabOP2y ago
\
Buddy
Buddy2y ago
Yeah, you don't need that.
tab
tabOP2y ago
This is what i created
tab
tabOP2y ago
Oh i see Wrong one Thanks
Buddy
Buddy2y ago
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.
arion
arion2y ago
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
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Accord
Accord2y ago
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.
Want results from more Discord servers?
Add your server