C
Join ServerC#
help
❔ Why does this not show a console? It outputs in the debug below but a console does not appear
Ttab1/26/2023

BBuddy1/26/2023
You seem to have created a windows form application (winforms), please choose console application.
BBuddy1/26/2023
$newproject
MMODiX1/26/2023
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
.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
Ttab1/26/2023
I always chose Win Forms console or not
Ttab1/26/2023
it always worked
BBuddy1/26/2023
If you are going to be using a console. Create a console application
BBuddy1/26/2023
If you want to use Winforms, but no console. Create a winforms project.
Ttab1/26/2023
Why is this here

Ttab1/26/2023
Attach
BBuddy1/26/2023
Usually means attach to a debugger
BBuddy1/26/2023
It should say start.
Ttab1/26/2023
\

BBuddy1/26/2023
Yeah, you don't need that.
Ttab1/26/2023
This is what i created

Ttab1/26/2023
Oh
Ttab1/26/2023
i see
Ttab1/26/2023
Wrong one
Ttab1/26/2023
Thanks
BBuddy1/26/2023
What workloads have you installed?
BBuddy1/26/2023
You can check that by searching for the program 'Visual Studio Installer'
BBuddy1/26/2023
Then press modify on your VS version, and then show that.
Aarion1/27/2023
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)
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)
Aarion1/27/2023
The parent process ID for attachconsole is -1 or uint.MaxValue (depending on how u use PInvoke)
Ttebeco1/27/2023
open your file with the extension
csproj
and show usAAccord1/28/2023
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.