You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/framework/app-domains/how-to-view-the-contents-of-the-gac.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,7 @@ Use the [global assembly cache tool (gacutil.exe)](../tools/gacutil-exe-gac-tool
19
19
20
20
## View the assemblies in the GAC
21
21
22
-
To view a list of the assemblies in the global assembly cache, open a [command-line shell for developers](../tools/developer-command-prompt-for-vs.md)), and then enter the following command:
22
+
To view a list of the assemblies in the global assembly cache, open a [command-line shell for developers](../tools/developer-command-prompt-for-vs.md), and then enter the following command:
Copy file name to clipboardExpand all lines: docs/framework/migration-guide/how-to-determine-which-versions-are-installed.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -202,7 +202,7 @@ The .NET Framework CLR installed with .NET Framework is versioned separately. Th
202
202
203
203
-**The Clrver.exe tool**
204
204
205
-
Use the [CLR Version tool (Clrver.exe)](../tools/clrver-exe-clr-version-tool.md) to determine which versions of the CLR are installed on a computer. Open a [command-line shell for developers](../tools/developer-command-prompt-for-vs.md)) and enter `clrver`.
205
+
Use the [CLR Version tool (Clrver.exe)](../tools/clrver-exe-clr-version-tool.md) to determine which versions of the CLR are installed on a computer. Open a [command-line shell for developers](../tools/developer-command-prompt-for-vs.md) and enter `clrver`.
Copy file name to clipboardExpand all lines: docs/framework/tools/developer-command-prompt-for-vs.md
+46-28Lines changed: 46 additions & 28 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,16 +10,16 @@ helpviewer_keywords:
10
10
- "developer PowerShell"
11
11
- "Visual Studio terminal"
12
12
ms.assetid: 94fcf524-9045-4993-bfb2-e2d8bad44219
13
+
no-loc: cmdlet
13
14
---
14
15
# Command-line shells for developers
15
16
16
-
Visual Studio 2019 includes three command-line shells for developers:
17
+
Visual Studio 2019 includes two command-line shells for developers:
17
18
18
-
- Developer Command Prompt for Visual Studio
19
-
- Developer PowerShell
20
-
- Visual Studio terminal
19
+
-**Developer Command Prompt for Visual Studio** - A standard command prompt with certain environment variables set to make using command-line developer tools easier.
20
+
-**Developer PowerShell** - More powerful than a command prompt. For example, you can pass the output of one command (known as a *cmdlet*) to another cmdlet.
21
21
22
-
All three of these tools have specific environment variables set that enable you to use command-line developer tools more easily. After opening one of these windows, you can enter the commands for different utilities without having to know where they're located. The commands you can run include:
22
+
Both shells have specific environment variables set that enable you to use command-line developer tools more easily. After opening one of these shells, you can enter the commands for different utilities without having to know where they're located. The commands you can run include:
23
23
24
24
-[`MSBuild`](/visualstudio/msbuild/msbuild-command-line-reference), to build a project or solution.
25
25
-[.NET Framework tools](index.md), such as [`clrver`](clrver-exe-clr-version-tool.md) and [`ildasm`](ildasm-exe-il-disassembler.md).
@@ -29,39 +29,39 @@ All three of these tools have specific environment variables set that enable you
29
29
30
30
:::image type="content" source="media/developer-command-prompt-for-vs/command-prompt.png" alt-text="Developer Command Prompt for Visual Studio showing clrver tool":::
31
31
32
-
When you open one of these windows from Visual Studio, it opens to the directory of your current solution (if you have a solution loaded). This behavior makes it convenient to run commands against the solution or its projects.
32
+
Starting in Visual Studio 2019 version 16.5, Visual Studio includes an integrated **terminal** that can host either of these shells (Developer Command Prompt and Developer PowerShell). You can also open multiple tabs of each shell. The Visual Studio terminal is built on top of [Windows Terminal](/windows/terminal/). To open the terminal in Visual Studio, choose **View** > **Terminal**.
33
33
34
-
## Prerequisites
34
+
:::image type="content" source="media/developer-command-prompt-for-vs/vs-terminal.png" alt-text="Visual Studio terminal showing multiple tabs":::
35
35
36
-
-[Visual Studio 2019](https://visualstudio.microsoft.com/downloads/?utm_medium=microsoft&utm_source=docs.microsoft.com&utm_campaign=inline+link&utm_content=download+vs2019)
36
+
When you open one of the developer shells from Visual Studio, either as a separate app or in the Terminal window, it opens to the directory of your current solution (if you have a solution loaded). This behavior makes it convenient to run commands against the solution or its projects.
37
37
38
-
## Developer Command Prompt
38
+
## Prerequisites
39
39
40
-
There are a few ways you can open Developer Command Prompt for Visual Studio, including from Visual Studio, from the Windows Start menu, or by running the command to start Developer Command Prompt for Visual Studio.
40
+
-[Visual Studio 2019](https://visualstudio.microsoft.com/downloads/?utm_medium=microsoft&utm_source=docs.microsoft.com&utm_campaign=inline+link&utm_content=download+vs2019)
41
41
42
-
###Start the command prompt from inside Visual Studio
42
+
## Start the shell from inside Visual Studio
43
43
44
-
Follow these steps to open Developer Command Prompt from within Visual Studio:
44
+
Follow these steps to open Developer Command Prompt or Developer PowerShell from within Visual Studio:
45
45
46
46
1. Open Visual Studio.
47
47
48
-
1. On the menu bar, choose **Tools** > **Command Line** > **Developer Command Prompt**.
48
+
1. On the menu bar, choose **Tools** > **Command Line** > **Developer Command Prompt** or **Developer PowerShell**.
49
49
50
50

51
51
52
-
### Search for the command prompt on your machine
52
+
### Use the Windows Start menu
53
53
54
-
You may have multiple command prompts, depending on the version of Visual Studio and any additional SDKs and workloads you've installed. If the following steps don't work, you can try to [manually locate the files on your machine](#manually-locate-the-files-on-your-machine) or [start the command prompt from inside Visual Studio](#start-the-command-prompt-from-inside-visual-studio).
54
+
You may have multiple command prompts, depending on the version of Visual Studio and any additional SDKs and workloads you've installed. If the following steps don't work, you can try to [manually locate the files on your machine](#manually-locate-the-files-on-your-machine) or [start the shell from inside Visual Studio](#start-the-shell-from-inside-visual-studio).
55
55
56
56
#### Windows 10
57
57
58
58
1. Select **Start** and scroll to the letter **V**.
59
59
60
60
1. Expand the **Visual Studio 2019** folder.
61
61
62
-
1. Choose **Developer Command Prompt for VS 2019**(or the command prompt you want to use).
62
+
1. Choose **Developer Command Prompt for VS 2019** or **Developer PowerShell for VS 2019**.
63
63
64
-
Alternatively, you can start typing the name of the command prompt in the search box on the taskbar, and choose the result you want as the result list starts to display the search matches.
64
+
Alternatively, you can start typing the name of the shell in the search box on the taskbar, and choose the result you want as the result list starts to display the search matches.
65
65
66
66

67
67
@@ -71,47 +71,65 @@ You may have multiple command prompts, depending on the version of Visual Studio
71
71
72
72
1. On the **Start** screen, press **Ctrl**+**Tab** to open the **Apps** list, and then press **V**. This brings up a list that includes all installed Visual Studio command prompts.
73
73
74
-
1. Choose **Developer Command Prompt for VS 2019**(or the command prompt you want to use).
74
+
1. Choose **Developer Command Prompt for VS 2019** or **Developer PowerShell for VS 2019**.
75
75
76
76
#### Windows 7
77
77
78
78
1. Choose **Start** and then expand **All Programs**.
79
79
80
-
1. Choose **Visual Studio 2019** > **Visual Studio Tools** > **Developer Command Prompt for VS 2019**, or the command prompt you want to use.
80
+
1. Choose **Visual Studio 2019** > **Visual Studio Tools** > **Developer Command Prompt for VS 2019** or **Developer PowerShell for VS 2019**.
81
81
82
82

83
83
84
84
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), you may see additional command prompts. Check the documentation for the individual tools to determine which version of the command prompt you should use.
85
85
86
86
### Manually locate the file
87
87
88
-
Usually, the shortcuts for the command prompts you have installed are placed in the **Start Menu** folder for Visual Studio, such as in *%ProgramData%\Microsoft\Windows\Start Menu\Programs\Visual Studio 2019\Visual Studio Tools*. But if searching for the command prompt doesn't produce the expected results, you can try to manually locate the shortcut on your machine. Search for the name of the command prompt file, which is *VsDevCmd.bat*, or go to the Tools folder, such as *%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Community\Common7\Tools* (path changes according to your Visual Studio version, edition, and installation location).
88
+
Usually, the shortcuts for the shells you have installed are placed in the **Start Menu** folder for Visual Studio, such as in *%ProgramData%\Microsoft\Windows\Start Menu\Programs\Visual Studio 2019\Visual Studio Tools*. But if searching for the command prompt doesn't produce the expected results, you can try to manually locate the files on your machine.
89
89
90
-
Once you've located the command prompt file, open it using the following commands in a regular command prompt window (but change the directory to match your installation of Visual Studio):
90
+
#### Developer Command Prompt
91
+
92
+
Search for the name of the command prompt file, which is *VsDevCmd.bat*, or go to the Tools folder for Visual Studio, such as *%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Community\Common7\Tools* (path changes according to your Visual Studio version, edition, and installation location).
93
+
94
+
Once you've located the command prompt file, open it by entering the following command in a regular command prompt window:
91
95
92
96
```cmd
93
-
cd %ProgramFiles(x86)%\Microsoft Visual Studio\2019\Community\Common7\Tools
> You'll need to edit the path to match your Visual Studio installation.
108
+
109
+
#### Developer PowerShell
104
110
105
-
To open [Developer PowerShell](https://devblogs.microsoft.com/visualstudio/the-powershell-you-know-and-love-now-with-a-side-of-visual-studio/), choose **Tools** > **Command Line** > **Developer PowerShell** from the menu bar.
111
+
Search for a file named *Microsoft.VisualStudio.DevShell.dll*, or go to the Tools folder for Visual Studio, such as *%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Community\Common7\Tools* (path changes according to your Visual Studio version, edition, and installation location).
106
112
107
-
## Visual Studio Terminal
113
+
Once you've located the Developer PowerShell assembly file, open it by entering the following command in a PowerShell window:
To open the integrated [Terminal](https://devblogs.microsoft.com/visualstudio/say-hello-to-the-new-visual-studio-terminal/) in Visual Studio, choose **View** > **Terminal** from the menu bar.
125
+
> [!TIP]
126
+
> You'll need to edit the path and instance ID (the final number) to match your Visual Studio installation. You can get the information from the *Target* value in the properties of the Developer PowerShell shortcut, which is located in the *%ProgramData%\Microsoft\Windows\Start Menu\Programs\Visual Studio 2019\Visual Studio Tools* folder.
0 commit comments