Developing with Visual Studio

The following approach works well enough. However I have not been able to use any kind of conditional breakpoint.

  • Check you have PowerShell 3.0 or 4.0 installed
  • Install VisualStudio 2013 Community Edition
  • Install PowerShell Tools for Visual Studio 2013 extension
  • Update "PowerShell Tools for Visual Studio" via Tools -> Extensions and Updates...
  • Set the PowerShell Execution Policy in PowerShell with the following command: Set-ExecutionPolicy Unrestricted -Scope CurrentUser
  • Create a new PowerShell project and away you go!

Alternatively you might be working with Visual Studio Code. In which case you will need the following:

  • Install Visual Studio Code
  • Install PowerShell Core or PowerShell Windows
  • Load VS Code and locate the PowerShell extension from Microsoft