Command-line shells & prompt for developers – Visual Studio (Windows)

Command-line shells & prompt for developers – Visual Studio (Windows)

Visual Studio Developer Command Prompt and Developer PowerShell

  • Article
  • 6 minutes to check out

Applies to: yes Visual Studio no Visual Studio for Mac no Visual Studio Code

Visual Studio consists of 2 command-line shells for designers, a command timely and a circumstances of PowerShell, as follows:

  • Visual Studio Developer Command Prompt – A basic command trigger with particular environment variables set to use command-line designer tools simpler. Offered because Visual Studio 2015.

    Screenshot of the Developer Command Prompt for Visual Studio 2019 showing clrver tool.

    Screenshot of the Developer Command Prompt for Visual Studio 2022 that shows the clrver tool.

  • Visual Studio Developer PowerShell – More effective than a command timely. You can pass the output of one command (understood as a cmdlet) to another cmdlet. This shell has the very same environment variables set as Developer Command Prompt. Offered given that Visual Studio 2019.

    Screenshot of the Developer PowerShell tool in Visual Studio 2022.

Starting in Visual Studio 2019 variation 16.5, Visual Studio consists of an incorporated terminal that can host either of these shells (Developer Command Prompt and Developer PowerShell). You can likewise open numerous tabs of each shell. The Visual Studio terminal is constructed on top of Windows Terminal To open the terminal in Visual Studio, choose View > Terminal

Screenshot of the Visual Studio terminal pane that shows multiple tabs.

Screenshot of the Visual Studio terminal showing multiple tabs.

When you open among the designer shells from Visual Studio, either as a different app or in the Terminal window, it opens to the directory site of your existing option (if you have actually an option packed). This habits makes it practical to run commands versus the service or its jobs.

Both shells have particular environment variables set that allow you to utilize command-line designer tools more quickly. After opening among these shells, you can go into the commands for various energies without needing to understand where they’re situated.

Popular commands Description
MSBuild Build a task or option
clrver A Internet Framework tool for CLR
ildasm A Web Framework tool for disassembler
dotnet A WEB CLI command
dotnet run A INTERNET CLI command
CL C/C++ put together tool
NMAKE C/C++ put together tool
LIB C/C++ develop tool
DUMPBIN C/C++ construct tool

Start in Visual Studio

Follow these actions to open Developer Command Prompt or Developer PowerShell from within Visual Studio:

  1. Open Visual Studio.
  2. On the menu bar, choose Tools > Command Line > Developer Command Prompt or Developer PowerShell

    Screenshot of the Command Line menu in Visual Studio 2022.

    Screenshot of the Command Line menu in Visual Studio 2019.

Another method to begin the shells is from the Start menu. You might have numerous command triggers, depending upon the variation of Visual Studio and any extra SDKs and work you’ve set up.

Windows 11

  1. Select Start Screenshot of the Start button in Windows 11. , and after that in the Type here to search dialog box, go into either designer command timely or designer powershell
  2. Select the App result that’s connected with your search text.

Windows 10

  1. Select StartScreenshot of the Start button in Windows 10., and after that scroll to the letter V
  2. Expand the Visual Studio 2019 or Visual Studio 2022 folder.
  3. If you’re running Visual Studio 2019, choose either Developer Command Prompt for VS 2019 or Developer PowerShell for VS 2019 If you’re running Visual Studio 2022, choose either Developer Command Prompt for VS 2022 or Developer PowerShell for VS 2022

    Alternatively, you can begin typing the name of the shell in the search box on the taskbar, and pick the outcome you desire as the outcome list begins to show the search matches.

    An animation that shows the search behavior in Windows 10.

Windows 8.1

  1. Go to the Start screen, by pushing the Windows logo design secret Screenshot of the Windows logo key on the keyboard. on your keyboard.
  2. On the Start screen, press Ctrl+ Tab to open the Apps list, and after that press V This raises a list that consists of all set up Visual Studio command triggers.
  3. If you’re running Visual Studio 2019, choose either Developer Command Prompt for VS 2019 or Developer PowerShell for VS 2019 If you’re running Visual Studio 2022, choose Developer Command Prompt for VS 2022 or Developer PowerShell for VS 2022
Like this post? Please share to your friends:
Leave a Reply

;-) :| :x :twisted: :smile: :shock: :sad: :roll: :razz: :oops: :o :mrgreen: :lol: :idea: :grin: :evil: :cry: :cool: :arrow: :???: :?: :!: