Alex Rivera | Logout

Opening console applications in powershell

Asked 2010-06-03T16:41:09.153
15

I'm currently developing a win32 console application, and wondering if there is any way to make visual studio open it in powershell instead of cmd.exe when I'm debugging it.

All I really want is a better shell, where I can copy/paste etc. without clicking.

Thanks

Edit
Report

1 Answer

15

I think you're mixing up the NT console subsystem (an app framework offerring common services) with cmd.exe (an application consuming those services.) When visuals studio runs a console application, it's not actually running CMD. CMD is a console application itself, no different than the app you are trying to debug, therefore running your application "in powershell" is equally as mistaken a concept.

If you mean trying to run it in PowerShell ISE, this is impossible. ISE is a Windows Application (NT GUI subsystem), which is an entirely different subsystem than that of the console.

-Oisin

answered 2010-06-03T21:49:04.053

Your Answer