Skip to content

Extensions

Luca Sgroi edited this page Apr 18, 2017 · 17 revisions

New tasks and scripts can be added by extensions, available as NuGet packages following the naming convention is Pask.*.

The idea is to break down functionalities with the same goal in a single extension which can be publicly available (open-source) or pushed to a private feed.

Extension project template

Authoring new extensions is much easier with the Visual Studio project template. It adds automatically the basic Pask structure to focus right away on building new tasks and scripts.

The template will create a C# project as opposite to PowerShell one, which would make more sense. Unfortunately NuGet Package Manager in Visual Studio does not support PowerShell projects at this stage. The extension package will be created by targeting a Nuspec which includes only the relevant ps1 files; no assembly will be built/included unless told to.

Extensions available