Link from code project: http://www.codeproject.com/KB/dotnet/VSCPinYourIDE.aspx
How to add vscp to your ide
We can add the vscp as a tool in the IDE so it will be very easy to access the vscp from the IDE itself.
- In your ide, go to tools-> external tools ..
- Click on the Add button.
- Give a title of your own like "command prompt ".
- In the 'command' area, specify the path either by typing"C: \ windows \ system32 \ cmd.exe"Or by browsing to the folder"C: \ windows \ system32"And selectingCmd.exe.
- In the arguments area, specify the text"C: \ Program Files \ Microsoft Visual Studio 8 \ common7 \ tools \ vsvars32.bat".
- Set the initial directory to the solution directory.
- Click on the OK button.
- Now, the Visual Studio command prompt is available in the IDE Tools menu.
Whenever you need the command prompt in the IDE, you can use this tool option and the command prompt will be available.
Addition
Now, you may ask the question "What is the difference between the system command prompt and the vscp ?"
We can consider the vscp as just a wrapper of the system command prompt. the vscp will simply load the environment settings for. NET framework so that you can use any of the framework tools in the command prompt and execute it without any errors like'... Not recognized as an internal or external command ..'. It is not necessary that we shoshould use vscp for using Visual Studio Tools likeSn.exe,Gacutil.exe, Etc. If you have set the environment variables properly for executing Visual Studio commands, you can use the system command prompt itself to use Visual Studio Tools. Otherwise, you will get an error.
What is vsvars32.bat?
Go to step 2. C, and you can notice the argumentVsvars32.bat. What is thisVsvars32.bat? It is simply a batch file setting the environment variables for the. NET Framework tools. You can navigateC: \ Program Files \ Microsoft Visual Studio 8 \ common7 \ tools \(In the case of Visual Studio 2008) and open the batch fileVsvars32.batFor editing, and you will get a clear picture on the environment variable settings for the. NET Framework.