Wiki

Clone wiki

Twia.PowerShell.VisualStudio / Home

TWIA PowerShell extension for Visual Studio

This project contains Visual Studio project templates and item templates for PowerShell modules.

I have created these templates mainly for my own purpose, for the way I like to work 😄, but I would really like it if the templates prove useful to others too. I would be more than happy to improve the templates base on feedback given on the gallery or through Issues page for the project.

The templates

Project Templates

PowerShell Module project template

The PowerShell module project template creates a project for a script module. It adds the module data file (.psd1) and a script module file (.psm1) to load scripts into the module. It also adds a PowerShell script (start-debug.ps1) for starting debugging of the module by loading the module in PowerShell.

PowerShell Module With DLL project template

The PowerShell module project template creates a project for a script module and a DLL from C# Cmdlets. It adds the module data file (.psd1) and a script module file (.psm1) to load scripts into the module. A first Cmdlet is added and exported with the user supplied Cmdlet name. It also adds a PowerShell script (start-debug.ps1) for starting debugging of the module by loading the module in PowerShell.

Item Templates

PowerShell C# Cmdlet item template

A C# Cmdlet for a PowerShell Module DLL. It provides a dialog to set the name for the Cmdlet, using the PowerShell approved verbs.

PowerShell Script Function item template

PowerShell script file for a PowerShell script function providing a template for a full-fledged function. It provides a dialog to set the name for the function, using the PowerShell approved verbs.

PowerShell pre-build and post-built event item templates

Adds a PowerShell script to the pre-build or post-build event. Passes in all possible macro variables for the event. Multiple scripts can be added to the pre-build and post-build events.

Where to get them

The latest released version of the extension is distributed on the Visual Studio Gallery. On the Gallery, the project can be found under TWIA PowerShell.

As the Visual Studio Gallery only allows to get the latest version, we make all released versions available in the project's downloads page.

Currently no intermediate version of the extension are distributed. If you need one, the only way is to get the source and build it. In the future I may provide pre-releases on the downloads page.

Revision history

For a list of changes in each release version, see the Revision History page.

Development

To do your own development on the project, see the Development page.

Roadmap

See the Roadmap page for future plans I have with this extension.

Copyright and License

Copyright © 2014-2019, Daniël te Winkel. All rights reserved.

See the Copyright and License page for information on copyright and licenses for this project and for Open Source licenses used in this project.

Updated