>Command Prompt from Visual Studio

>I use the stsadm commands to add/deploy/upgrade/retract solutions. I got fed up with having to start a command prompt and then change directory to within the solution and then drill down to the project directory, where the wsp solution is found.

So instead (and I don’t know why I didn’t do this ages ago) I setup an External Tool within Visual Studio which will open up the command prompt within the currently selected project.
To do the same do the following:-
  • Open up Visual Studio
  • Click Tools->External Tools
  • Click Add
  • In the Title call it something like Command Prompt (Project)
  • Command: c:\windows\system32\cmd.exe
  • Initial Dir: $(ProjectDir)
  • Untick Close on Exit

If you wish to have the command prompt open within a different directory then put the path to that directory, there are all the variables which are available when using post build events such as SolutionDir.

To use select the project that you wish to open the command prompt in and then do Tools->Command Prompt (Project)


Thoughts? Comments about this post? Please leave them here..

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.