August 20th, 2019
0 reactions

The PowerShell you know and love now with a side of Visual Studio

Senior Program Manager

While we know that many of you enjoy, and rely on the Visual Studio Command Prompt, some of you told us that you would prefer to have a PowerShell version of the tool. We are happy to share that in Visual Studio 2019 version 16.2, we added a new Developer PowerShell!

Using the new Developer PowerShell

We also added two new menu entries, providing quick access to not just the Developer PowerShell, but also for the Developer Command Prompt. These menu entries are located under Tools > Command Line.

C:\Users\rurios\AppData\Local\Microsoft\Windows\INetCache\Content.MSO\7DF5E1ED.tmp

Also, you can access the Developer Command Prompt and Developer PowerShell via the search (Ctrl +Q):

Selecting either of these tools, will launch them in their respective external windows, and with all the predefined goodness (e.g. preset PATHs and environment variables) you already rely on.

Opening them from Visual Studio automatically adjust their directories based on current solution or folder’s location. Additionally, If no solution or folder is open at the time of invocation, their directories are set based on the “Projects location” setting. This setting is located under Tools > Options > Locations.

Try it out and let us know what you think!

We’d love to know how it fits your workflow. Please reach out if you have any suggestions or comments around how we could further improve the experience. Send us your feedback via the Developer Community portal or via the Help > Send Feedback feature inside Visual Studio.

Author

Ruben Rios
Senior Program Manager

Ruben is a Program Manager on the Visual Studio IDE platform team. During his time at Microsoft, he’s helped build tools and services for web & mobile devs in both Visual Studio and the Microsoft Edge F12 dev tools. Before joining Microsoft, he was a professional web developer and has always been passionate about UX.

25 comments

Discussion is closed. Login to edit/delete existing comments.

Sort by :
  • Fakhrulhilal Maktum

    Why not supporting PowerShell Core? I believe this’s the next generation of powershell, more feature added in this version but not for old powershell.

  • Andre Raschke

    Kann mann die Powershell dirket mit in die IDE irgendwie “einbauen” als User? das wäre praktisch, dann könnte man sehen welche “ergebnisse ” bei gewissen Anwendungen sich ergeben. Ansonsten : sehr praktisch!

  • Frank Hileman

    Just updated Visual Studio to 16.2.4, and the developer command prompt doesn’t work at all. It seems a specific version of powershell is needed. Cannot load DevShell.dll, … the assembly was built with a newer run-time than the currently loaded one. What are the pre-requisites?

  • Teodor

    Is this working with powershell 6 (AKA Core) ?

    • Ruben RiosMicrosoft employee Author

      Hi Teodor! No, at this point we don’t offer support for PowerShell Core.