Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio 2012 PowerShell project

We are using PowerShell for provisioning/configuration/patching of virtual machines on the Windows Azure platform. Are there any project templates available to manage PowerShell projects in Visual Studio 2012 through which I can manage these scripts?

I would like to be able to create

  • PowerShell project with-in VS 2012 and add script files to it
  • Have basic syntax-coloring and highlighting (good to have intellisense).
  • Manage scripts using source control

I have found this visual studio extension PowerGUI VSX but it works only for VS 2010.

Updated [09/25/2013] : Found PowerShell Tools for Visual Studio. It provides all the features mentioned above for working with PowerShell Projects in VS 2012

like image 864
Gaurav Avatar asked Apr 02 '13 12:04

Gaurav


People also ask

How do I create a Visual Studio PowerShell project?

Project System You can also run PowerShell scripts by creating a PowerShell project within Visual Studio. To create a project, click File \ New \ Project and select the PowerShell language. Then, select the PowerShell Script project. A new project will be defined that contains a PS1 file.

How do I show PowerShell in Visual Studio?

Start in Visual Studio Open Visual Studio. On the menu bar, select Tools > Command Line > Developer Command Prompt or Developer PowerShell.

Can Visual Studio run PowerShell?

The Microsoft PowerShell extension for Visual Studio Code (VS Code) provides rich language support and capabilities such as syntax completions, definition tracking, and linting for PowerShell. The extension works anywhere you can run VS Code and PowerShell 7 or higher.


1 Answers

PowerShell doesn't get much Visual Studio love. How about the PowerShell ISE, PowerGUI, or PowerShell Plus?

Of the three, the last is the only one with any source control integration.

like image 131
alroc Avatar answered Oct 17 '22 09:10

alroc