Visual Studio Command Prompt in Console

I’m a big fan of Console – it’s a nifty little app that lets you host multiple disparate command prompts in a single tabbed interface. I have a regular command prompt, a Git bash, a Powershell prompt and a Python prompt. These are pretty easy to create, and one I added today was the Visual Studio Command prompt. For VS 2010, the shell value is:

%comspec% /k “”C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat”" x86

That might not be the same on your system, but it’s easy to find it out. Just find the shortcut for the Visual Studio Command Prompt in your Start menu (or whatever it’s called in Windows 7), and go to “Properties”. Copy the “Target” value:


And set this as the “Shell” value in Console.

This prompt puts all the .NET SDK tools into the PATH, so you can use these tools without caring about where they are. I don’t have to use those tools very often (like Gacutil.exe, hope I never have to use that one again), but it’s nice to not have to drop into a new command prompt window that doesn’t support copy-paste.


About Jimmy Bogard

I'm a technical architect with Headspring in Austin, TX. I focus on DDD, distributed systems, and any other acronym-centric design/architecture/methodology. I created AutoMapper and am a co-author of the ASP.NET MVC in Action books.
This entry was posted in Tools. Bookmark the permalink. Follow any comments here with the RSS feed for this post.
  • I’ve been using Console for a while, but just had install it on a new machine. Out of the box, I got tabs for Powershell, Powershell64, VS2008, VS2010, and Git. I’m not sure when that was added (it might have been part of the Chocolatey package), but it’s another nice touch.

  • Mario Pareja

    I often find myself wanting to run builds from the command line but I generally live in the bash shell. I solved this problem by writing a wrapper batch file that calls out to vcvrsall before launching bash. I wrote a post about last year:

  • Shashank

    Dear Mr. XXX,

    I have seen your blog
    related to visual studio, it has come out very well. It has lot of information
    related to .net which is helpful to developers like us.

    We recently developed
    a product called ‘Tremplin’. This tool will develop complete database
    application without involving you to write single line of code. I request you
    to write one article about our product and publish in your site. Since your
    site attracts lot of visitors, this will be of great help to us and intern we
    can offer one year free license to you.

    You can also take
    complete 30 minute course about this product at

    Please see this intro

    If you want more
    information you may visit

    Thanks and Regards


    Relationship Manager



    Mobile: +918147533797