[Tip] add vs command prompt as external tool into vs in case missing it

Source: Internet
Author: User

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.

    1. In your ide, go to tools-> external tools ..
    2. Click on the Add button.
      1. Give a title of your own like "command prompt ".
      2. 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.
      3. In the arguments area, specify the text"C: \ Program Files \ Microsoft Visual Studio 8 \ common7 \ tools \ vsvars32.bat".
      4. Set the initial directory to the solution directory.
    3. Click on the OK button.
    4. 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.

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.