Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
141 changes: 72 additions & 69 deletions docs/framework/tools/developer-command-prompt-for-vs.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "Developer Command Prompt for Visual Studio"
ms.date: "03/30/2017"
ms.date: "06/18/2018"
helpviewer_keywords:
- "command prompt, Windows SDK"
- "Visual Studio command prompt"
Expand All @@ -14,72 +14,75 @@ author: "mairaw"
ms.author: "mairaw"
---
# Developer Command Prompt for Visual Studio
The Developer Command Prompt for Visual Studio automatically sets the environment variables that enable you to easily use .NET Framework tools. The Developer Command Prompt is installed with full or community editions of Visual Studio. It is not installed with the Express versions of Visual Studio.

<a name="find"></a>
## Searching for the Command Prompt on your machine
You may see multiple command prompts, depending on the version of Visual Studio and any additional SDKs you've installed. For example, 64-bit versions of Visual Studio provide both 32-bit and 64-bit command prompts. (The 32-bit and 64-bit versions of most tools are identical; however, a few tools make changes specific to 32-bit and 64-bit environments.) If the steps below don't work, you can try [Manually locating the files on your machine](#alternative) or [Running command prompt from inside Visual Studio](#visualstudio).

**In Windows 10**

1. Open the **Start** menu, by pressing the Windows logo key ![Windows logo](../../../docs/framework/get-started/media/windowskeyboardlogo.png "Windowskeyboardlogo") on your keyboard for example.

2. On the **Start** menu, enter `dev`. This will bring a list of installed apps that match your search pattern. If you're looking for a different command prompt, try entering a different search term such as `prompt`.

3. Choose the **Developer Command Prompt** (or the command prompt you want to use).

**In Windows 8.1**

1. Go to the **Start** screen, by pressing the Windows logo key ![Windows logo](../../../docs/framework/get-started/media/windowskeyboardlogo.png "Windowskeyboardlogo") on your keyboard for example.

2. On the **Start** screen, press `CTRL + TAB` to open the **Apps** list and then enter `V`. This will bring a list that includes all installed Visual Studio command prompts.

3. Choose the **Developer Command Prompt** (or the command prompt you want to use).

**In Windows 8**

1. Go to the **Start** screen, by pressing the Windows logo key ![Windows logo](../../../docs/framework/get-started/media/windowskeyboardlogo.png "Windowskeyboardlogo") on your keyboard for example.

2. On the **Start** screen, press the Windows logo key ![Windows logo](../../../docs/framework/get-started/media/windowskeyboardlogo.png "Windowskeyboardlogo") `+ Z`.

3. Choose the **Apps view** icon at the bottom of the screen and then enter `V`. This will bring a list that includes all installed Visual Studio command prompts.

4. Choose the **Developer Command Prompt** (or the command prompt you want to use).

**In Windows 7**

1. Choose **Start**, expand **All Programs**, and then expand **Microsoft Visual Studio**.

2. Depending on the version of Visual Studio you have installed, choose **Visual Studio Tools**, **Visual Studio Command Prompt**, or the command prompt you want to use.

If you have the [Windows SDK](http://msdn.microsoft.com/windows/desktop/aa904949) or [Windows Phone SDK](https://dev.windowsphone.com/downloadsdk) installed, you may see additional command prompts for ARM, x86, or x64 architectures. Check the documentation for the individual tools to determine which version of the command prompt you should use.

<a name="alternative"></a>
## Manually locating the files on your machine
Usually, the shortcuts for the command prompts you have installed will be placed at the **Start Menu** folder for Visual Studio, such as in C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Visual Studio 2015\Visual Studio Tools. But if for some reason, searching for the command prompt doesn't yield the expected results, you can try to manually locate the shortcut on your machine in order to use it. Try searching for the name of the command prompt file such as VsDevCmd.bat or go to the Tools folder such as C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools (path will change according to your Visual Studio version and installation location).

<a name="visualstudio"></a>
## Running command prompt from inside Visual Studio
For easier access, you can add the Visual Studio Developer Command Prompt or any other command prompt to the Tools menu on Visual Studio, by adding it to the external tools list. This is how you can accomplish that:

1. Open Visual Studio.

2. Select the **Tools** menu and choose **External Tools...**.

3. On the **External Tools** dialog box, choose the **Add** button. A new entry appears

4. Enter a **Title** for your new menu item such as `Command Prompt`.

5. In the **Command** field, specify the file you want to launch such as `%comspec%` or `C:\Windows\System32\cmd.exe` .

6. In the **Arguments** field, specify where to find the specific command prompt you want to use such as `/k "C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools\VsDevCmd.bat"` (this will launch the Developer Command Prompt installed with [!INCLUDE[vs_dev14](../../../includes/vs-dev14-md.md)]). This value needs to be changed according to your Visual Studio version and installation location.

7. Choose a value for the **Initial directory** field such as **Project Directory** .

8. Choose the **OK** button.

After that, the new menu item is added and you can access the command prompt from the **Tools** menu.

## See Also

The Developer Command Prompt for Visual Studio automatically sets the environment variables that enable you to easily use .NET Framework tools. The Developer Command Prompt is installed with full or community editions of Visual Studio. It isn't installed with the Express versions of Visual Studio.

> [!div class="button"]
[Download Visual Studio](https://www.visualstudio.com/downloads/?utm_medium=microsoft&utm_source=docs.microsoft.com&utm_campaign=button+cta&utm_content=download+vs2017)

## Searching for the Command Prompt on your machine

You may see many command prompts, depending on the version of Visual Studio and any additional SDKs you've installed. For example, 64-bit versions of Visual Studio provide both 32-bit and 64-bit command prompts. (The 32-bit and 64-bit versions of most tools are the same; however, a few tools make changes specific to 32-bit and 64-bit environments.) If the following steps don't work, you can try [Manually locating the files on your machine](#manually-locating-the-files-on-your-machine) or [Running command prompt from inside Visual Studio](#running-command-prompt-from-inside-visual-studio).

### In Windows 10

1. In the search box on the taskbar, start typing the name of the tool, such as `dev` or `developer command prompt`. This brings a list of installed apps that match your search pattern. If you're looking for a different command prompt, try entering a different search term such as `prompt`.

2. Choose the **Developer Command Prompt** (or the command prompt you want to use).

### In Windows 8.1

1. Go to the **Start** screen, by pressing the Windows logo key ![Windows logo](../get-started/media/windowskeyboardlogo.png "Windowskeyboardlogo") on your keyboard for example.

2. On the **Start** screen, press `CTRL + TAB` to open the **Apps** list and then enter `V`. This brings a list that includes all installed Visual Studio command prompts.

3. Choose the **Developer Command Prompt** (or the command prompt you want to use).

### In Windows 8

1. Go to the **Start** screen, by pressing the Windows logo key ![Windows logo](../get-started/media/windowskeyboardlogo.png "Windowskeyboardlogo") on your keyboard for example.

2. On the **Start** screen, press the Windows logo key ![Windows logo](../get-started/media/windowskeyboardlogo.png "Windowskeyboardlogo") `+ Z`.

3. Choose the **Apps view** icon at the bottom of the screen and then enter `V`. This brings a list that includes all installed Visual Studio command prompts.

4. Choose the **Developer Command Prompt** (or the command prompt you want to use).

### In Windows 7

1. Choose **Start**, expand **All Programs**, and then expand **Microsoft Visual Studio**.

2. Depending on the version of Visual Studio you've installed, choose **Visual Studio Tools**, **Visual Studio Command Prompt**, or the command prompt you want to use.

If you have other SDKs installed such as the [Windows 10 SDK](https://developer.microsoft.com/windows/downloads/windows-10-sdk) or [previous versions](https://developer.microsoft.com/windows/downloads/sdk-archive) installed, you may see additional command prompts for ARM, x86, or x64 architectures. Check the documentation for the individual tools to determine which version of the command prompt you should use.

## Manually locating the files on your machine

Usually, the shortcuts for the command prompts you have installed are placed at the **Start Menu** folder for Visual Studio, such as in C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Visual Studio 2017\Visual Studio Tools. But if for some reason, searching for the command prompt doesn't bring the expected results, you can try to manually locate the shortcut on your machine. Try searching for the name of the command prompt file, such as *VsDevCmd.bat*, or go to the Tools folder such as C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\Tools (path changes according to your Visual Studio version, edition, and installation location).

## Running command prompt from inside Visual Studio

For easier access, you can add the Visual Studio Developer Command Prompt or any other command prompt to the Tools menu on Visual Studio, by adding it to the external tools list. This is how you can accomplish that:

1. Open Visual Studio.

2. Select the **Tools** menu and choose **External Tools**.

3. On the **External Tools** dialog box, choose the **Add** button. A new entry appears.

4. Enter a **Title** for your new menu item such as `Command Prompt`.

5. In the **Command** field, specify the file you want to launch such as `%comspec%` or `C:\Windows\System32\cmd.exe`.

6. In the **Arguments** field, specify where to find the specific command prompt you want to use such as `/k "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\Tools\VsDevCmd.bat"` (this command launches the Developer Command Prompt that is installed with Visual Studio 2017 Enterprise). Change this value according to your Visual Studio version, edition, and installation location.

7. Choose a value for the **Initial directory** field such as **Project Directory**.

8. Choose the **OK** button.

After that, the new menu item is added and you can access the command prompt from the **Tools** menu.

## See also

[Tools](../../../docs/framework/tools/index.md)
[Managing External Tools](/visualstudio/ide/managing-external-tools)
[Managing External Tools](/visualstudio/ide/managing-external-tools)