A collection of tools for making the PSake & InvokeBuild experience in VSCode better!
Auto-generate tasks.json
files from build scripts so that you can run tasks right from VSCode's UI.
This module depends on you having Visual Studio Code installed, and the PowerShell Preview extension for VSCode.
IMPORTANT: This will not work with the current PowerShell stable extension!
Install-Module BuildRunnerVSCodeTools
Then, import it in your PowerShell Integrated Console session for the CodeLens to take effect:
Import-Module BuildRunnerVSCodeTools
For best performance, add that line to your PowerShell profile, or use the built-in Add-BuildRunnerProfileScript
to append it to the end of your Profile.
You should be able to click on a psakefile.ps1
or *.build.ps1
and see the CodeLens!
Invoke-Build
Import-Module ./path/to/BuildRunnerVSCodeTools/module/BuildRunnerVSCodeTools.psd1
You should be able to click on a psakefile.ps1
or *.build.ps1
and see the CodeLens!
NOTE: When running locally, the
Add-BuildRunnerProfileScript
won't use the path passed in to Import-Module