How can I use the tools included in the VS command prompt (Programs | MS Visual Studio 2008 | Visual Studio Tools | Visual Studio 2008 Command Prompt
) from any command prompt (ie without calling vcvarsall.bat
) or program?
相关问题
- How to know full paths to DLL's from .csproj f
- Importing NuGet references through a local project
- Visual Studio 2019 - error MSB8020: The build tool
- 'System.Threading.ThreadAbortException' in
- VS2017 RC - The following error occurred when tryi
相关文章
- How to show location of errors, references to memb
- How to track MongoDB requests from a console appli
- Visual Studio Hangs on Loading UI Library
- How to use Mercurial from Visual Studio 2010?
- Compile and build with single command line Java (L
- Copy different file to output directory for releas
- Edit & Continue doesn't work
- “Csc.exe” exited with code -1073741819
You might be interested in adding a "Visual Studio Command Prompt Here" context menu option in Windows Explorer. Scott Hanselman has a link to an .inf file you can run to make the registry changes for this
To get it to work from a program, the easiest route is probably to set all the environment variables permanently for the user.
To use it from a command prompt... I just use the Command Prompt Tools shortcut as my normal command prompt shortcut, so I've always got them anyway. The good thing about this approach is that you can have different shortcuts for different versions - so I have a VS2008 shortcut and a VS2010 shortcut.
Perhaps add to your path var the locations of bin folders for the tools provided by visual studio
The easiest way to do this is to add the PATH, INCLUDE, LIB and LIBPATH environment variables that are listed in the vsvarsXX.bat file for VS2005 on a 32 bit Intel box.
Here's the sample for vsvars32.bat:
Pick and fill in the values from there.