Skip to Main Content
Visual Studio Hacks
book

Visual Studio Hacks

by James Avery
March 2005
Intermediate to advanced content levelIntermediate to advanced
304 pages
19h 23m
English
O'Reilly Media, Inc.
Content preview from Visual Studio Hacks
324
|
Chapter 10, Work with Visual Studio Tools
#77 Master the Visual Studio Command Prompt
HACK
5. Set the arguments to:
\k c:\Program Files\Microsoft Visual Studio .NET 2003\Common7\Tools\
vsvars32.bat
6. Set the initial directory to any of the available options. (These include
$(SolutionDir) and $(ProjectDir), which would place you in the solu-
tion directory or project directory, respectively.)
7. Click OK.
Figure 10-2 shows an example of the External Tools
[Hack #33] dialog with
these settings entered.
The VSCP will now be added as a tool on the Tools menu. You will be able
to quickly get to the tool and even have it open in the directory of your
choice.
Add the Visual Studio Command Prompt to the Explorer
Another way to get the VSCP at your fingertips is through a little registry hack
that will add an “Open VS command prompt here” option in the Windows
Explorer. The easiest way to add these registry settings is to create a .reg in
your favorite text editor with the following code:
Figure 10-2. External Tools dialog
Master the Visual Studio Command Prompt #77
Chapter 10, Work with Visual Studio Tools
|
325
HACK
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\VSCP]
@="Open VS Command Prompt Here"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\VSCP\command]
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Microsoft Visual Studio 2015 Unleashed, Third Edition

Microsoft Visual Studio 2015 Unleashed, Third Edition

Mike Snell, Lars Powers
.Net Framework Essentials

.Net Framework Essentials

Thuan L. Thai, Hoang Lam
C# 5.0 Unleashed

C# 5.0 Unleashed

Bart De Smet
Programming .NET Security

Programming .NET Security

Adam Freeman, Allen Jones

Publisher Resources

ISBN: 0596008473Errata Page