How can I add the VS Command Prompt to Visual Studio 2010 C# Express?

39,519

Solution 1

The VS command prompt is not a standaloneshell, but the standard cmd.exe with some EnvironmentVariables setup — through vcvarsall.bat

Charmingly, vcvarsall.bat only ships with the c++ edition, and resides in the Microsoft Visual Studio 10.0\VC folder.

So if you haven’t installed VS c++ Express — and you want to access the shell, you probably have to install VS c++ Express; that’s what I did, anyway.

  1. Select Tools >> External Tools in Visual Studio.
  2. Click Add
  3. Fill in the Title - I used Visual Studio Command &Prompt (C is already assigned to Customize)
  4. Command: cmd.exe (should already be on your PATH)
  5. Arguments: /k "\path\to\Microsoft Visual Studio 10.0\VC\vcvarsall.bat"
  6. Pick an Initial directory. I used $(ProjectDir)
  7. Click OK

alt text

I have these notes @ http://www.xradiograph.com/Programming/VisualStudioExpress which were in turn adapted from http://visualbasic.about.com/b/2010/08/17/the-visual-studio-command-prompt.htm and other sources

Solution 2

04 December 2010

You can download Windows SDK 7.1 Net (Framework) 4 for free. For XP, Vista,... Windows SDK 7.1 contains Command Prompt and that work perfect. I have tried with Visual Basic 2010 Express to create Client Windows Communication and it's perfect. See you soon.

Solution 3

Just install VC++ express edition. It will automatically install visual studio command prompt. you must have only installed vc# express not vc++ express. Try installing it and you will get command prompt, as it is for visual basic 2005 edition.

Share:
39,519
Michael Paulukonis
Author by

Michael Paulukonis

I've been programming professionally in C#, ASP.NET, Perl, JavaScript and VB6 (!!!) since 2003. Emacs and FireFox are my preferred environments. After that, I like to throw wikis at problems to make them go away. And if they don't go away, at least we've got the page revisions under version control! You know what they say about bad code? It's anything YOU wrote, or anything I wrote more than 6 weeks ago. :::sigh::: I keep trying to add days to that equation....

Updated on July 09, 2022

Comments