[URL] https://docs.microsoft.com/en-us/dotnet/framework/tools/developer-command-prompt-for-vs [/URL]
[COLOR=#000000][FONT=&]The Developer Command Prompt for Visual Studio enables you to use .NET Framework tools more easily. It is a command prompt that automatically sets specific environment variables.[/FONT][/COLOR]
[COLOR=#000000][FONT=&][URL=”https://visualstudio.microsoft.com/downloads/?utm_medium=microsoft&utm_source=docs.microsoft.com&utm_campaign=button+cta&utm_content=download+vs2019″]Download Visual Studio[/URL]
[/FONT][/COLOR]
[B]Search for the command prompt on your machine[/B]
[COLOR=#000000][FONT=&]You may have 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 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 [URL=”https://docs.microsoft.com/en-us/dotnet/framework/tools/developer-command-prompt-for-vs#manually-locate-the-files-on-your-machine”]Manually locate the files on your machine[/URL] or [URL=”https://docs.microsoft.com/en-us/dotnet/framework/tools/developer-command-prompt-for-vs#run-the-command-prompt-from-inside-visual-studio”]Run the command prompt from inside Visual Studio[/URL].[/FONT][/COLOR]
[B]In Windows 10[/B]
[LIST=1]
[*]In the search box on the taskbar, start typing the name of the tool, such as dev or developer command prompt. This brings up 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.
[*]Choose the Developer Command Prompt for Visual Studio (or the command prompt you want to use).
[/LIST]
[B]In Windows 8.1[/B]
[LIST=1]
[*]Go to the Start screen, by pressing the Windows logo key [IMG] [/IMG] on your keyboard for example.
[*]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.
[*]Choose the Developer Command Prompt (or the command prompt you want to use).
[/LIST]
[B]In Windows 8[/B]
[LIST=1]
[*]Go to the Start screen, by pressing the Windows logo key [IMG] [/IMG] on your keyboard for example.
[*]On the Start screen, press the Windows logo key [IMG] [/IMG] + Z.
[*]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.
[*]Choose the Developer Command Prompt (or the command prompt you want to use).
[/LIST]
[B]In Windows 7[/B]
[LIST=1]
[*]Choose Start, expand All Programs, and then expand Microsoft Visual Studio.
[*]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.
[/LIST]
[COLOR=#000000][FONT=&]If you have other SDKs installed, such as the [URL=”https://developer.microsoft.com/windows/downloads/windows-10-sdk”]Windows 10 SDK[/URL] or [URL=”https://developer.microsoft.com/windows/downloads/sdk-archive”]previous versions[/URL], 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.[/FONT][/COLOR]
[B]Manually locate the files on your machine[/B]
[COLOR=#000000][FONT=&]Usually, the shortcuts for the command prompts you have installed are placed at the Start Menu folder for Visual Studio, such as in C:ProgramDataMicrosoftWindowsStart MenuProgramsVisual Studio 2017Visual 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 [I]VsDevCmd.bat[/I], or go to the Tools folder such as C:Program Files (x86)Microsoft Visual Studio2017EnterpriseCommon7Tools (path changes according to your Visual Studio version, edition, and installation location).[/FONT][/COLOR]
[B]Run the command prompt from inside Visual Studio[/B]
[COLOR=#000000][FONT=&]For easier access, you can add the Visual Studio Developer Command Prompt, or any other command prompt, to the Tools menu in Visual Studio. To make the tool available, add it to the external tools list. Here are the steps:[/FONT][/COLOR]
[LIST=1]
[*]Open Visual Studio.
[*]Select the Tools menu, and then choose External Tools.
[*]On the External Tools dialog box, choose the Add button. A new entry appears.
[*]Enter a Title for your new menu item such as Command Prompt.
[*]In the Command field, specify the file you want to launch, such as %comspec% or C:WindowsSystem32cmd.exe.
[*]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 Studio2017EnterpriseCommon7ToolsVsDevCmd.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.
[*]Choose a value for the Initial directory field, such as Project Directory.
[*]Choose the OK button.
The new menu item is added, and you can access the command prompt from the Tools menu.
[IMG] [/IMG]
[/LIST]