New-VSCodeTask

1.0.1

The script makes VSCode tasks from Invoke-Build tasks. It creates tasks.cmd
and tasks.json in .\.vscode. The existing files are overridden. Change to
the VSCode workspace directory before invoking the script.

Do not edit tasks.json directly. Edit the build script instead. When you
add, remove, rename, reorder tasks, change tags or Invoke-Build location
then regenerat
The script makes VSCode tasks from Invoke-Build tasks. It creates tasks.cmd
and tasks.json in .\.vscode. The existing files are overridden. Change to
the VSCode workspace directory before invoking the script.

Do not edit tasks.json directly. Edit the build script instead. When you
add, remove, rename, reorder tasks, change tags or Invoke-Build location
then regenerate VSCode tasks.

The default task becomes a so called VSCode build task (Ctrl+Shift+B).
The default task is '.' if it exists, otherwise it is the first task.

To invoke another task from VSCode, use Ctrl+Shift+P and type 'Run Task'.
Then type a task name or select it from the opened list of your tasks.
Or simply define a shortcut in keybindings.json, for example:

// show the task list
{ "key": "ctrl+k k", "command": "workbench.action.tasks.runTask" }

Only tasks with certain names are included. They contain alphanumeric
characters, '_', '.', and '-', with the first character other than '-'.

In order to invoke some tasks in a console host outside VSCode specify the
tag #ConsoleHost in a comment preceding the task definition. Note that all
parent tasks in the task trees get this tag automatically.

Show more

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Script -Name New-VSCodeTask -RequiredVersion 1.0.1

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Owners

Copyright

(c) 2011-2017 Roman Kuzmin

Package Details

Author(s)

  • Roman Kuzmin

Tags

Invoke Task Invoke-Build VSCode

Functions

Add-Text Add-Line Test-ConsoleHost

Dependencies

This script has no dependencies.

FileList

Version History

Version Downloads Last updated
1.3.2 539 11/22/2020
1.3.1 76 7/29/2020
1.3.0 151 12/29/2019
1.2.0 28 12/19/2019
1.1.7 283 5/13/2018
1.1.6 41 3/20/2018
1.1.5 191 11/9/2017
1.1.4 32 11/1/2017
1.1.3 29 10/28/2017
1.1.2 129 7/12/2017
1.1.0 35 5/29/2017
1.0.1 (current version) 34 3/2/2017
1.0.0 64 6/20/2016
Show less