10

Basically I'm looking for something like the "Visual Studio Command Prompt", but which can be docked as a tab or otherwise moved about like any other Visual Studio panel.

Does such a thing exist?

I'm looking for something like PowerConsole but which would let me run msbuild from whithin the IDE.

3
  • can't you run msbuild from inside powerconsole?
    – akira
    Jan 26, 2011 at 6:15
  • @akira: Perhaps you can, but it seems you have to specify the full path of the msbuild executable (or screw around with %PATH%?). Plus a ton of environment variables need set for the various compilers to work correctly. MSVS includes a batch script to do all this, but I don't think that'll run in PowerShell. Jan 26, 2011 at 6:21
  • you can do this, very easily and i ll give you an answer for that.
    – akira
    Jan 26, 2011 at 10:03

2 Answers 2

3

If using NuGet, in Visual Studio click Tools -> NuGet Package Manager -> Package Manager Console

2
  • YES! Thank you for answering the question the OP had. The other answer says Use Powershell. Well, if I was comfortable using powershell, I would, but I like cmd. I never realized that the PM console worked this way. Oct 24, 2016 at 15:54
  • In VS2017, that is indeed a PowerShell host. And some bat script I have to work with just do not work inside it. It is a bit lame it seems we still cannot have a regular command prompt embedded into VS.
    – Frédéric
    Sep 20, 2019 at 8:06
2

instead of searching any further: just use the powerconsole and incorporate the settings of the "visual studio command prompt".

the visual studio command prompt is nothing more but:

  1. cmd.exe
  2. feed with vcvarsall.bat

so, all you have to do is execute vcvarsall.bat and interprete the result of that into your powershell. luckily this can be achieved very easily:

this should you get going, no need for cmd.exe, really.

3
  • 1
    I'm confused -- the powershell console uses powershell, not the command processor (cmd.exe) -- I don't even need the vcvarsall bit -- I just want a plain terminal window. Mar 15, 2011 at 14:44
  • If you want to use cmd.exe from within PowerShell, just run cmd.exe from within PowerShell. I don't know if there are any limitations with this, but I've never run into an issue where something works in the Command Line but not by running cmd.exe from PS.
    – codewario
    Apr 12, 2013 at 18:42
  • This was all good for 2011. Does anyone have the answer relative to 2018?
    – Josh Gust
    Nov 20, 2018 at 23:26

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .