Closed huserben closed 7 years ago
+1
I am surprised that it let me add the Task and run on a non-windows machine since it is in PowerShell. When I usually add PowerShell scripts it becomes a Demand. Would love to use as this a but we are not only using Window machines.
@huserben The new version of PowerShell is cross platform: https://github.com/PowerShell/PowerShell
Hi
I know about that, but still the proposed way of doing Tasks is with TypeScript according to MS: "Cross platform tasks are written in Typescript. It is the preferred way to write tasks once." https://github.com/Microsoft/vsts-task-lib
Hi all
just a little update, I started last week looking into the port to node.js so the task will run on all platforms. It looks good and I hope i can upload a first version in the course of next week :-)
Hi all
I uploaded verison 2.0.0 of the Task that is now written in Node and it's possible to use Linux Agents ;-) See https://marketplace.visualstudio.com/items?itemName=benjhuser.tfs-extensions-build-tasks for the infos
Currently the Task is written in PowerShell. This works fine, as long as the build agent that runs it is a windows machine. On Linux Machines the task will fail with following exception:
A supported task execution handler was not found. This error usually means the task does not carry an implementation that is compatible with your current operating system. Contact the task author for more details.
In order to make the task run on all agents it has to be rewritten to TypeScript. When this is done, it should be taken into account that we might want to reuse functionality for a similar task that can trigger releases. (see Issue 9).