Skip to content

Bugfix: Replace Node20 execution handler with Node20_1 for ReplaceTokens task#248

Open
tiredofchoosing wants to merge 1 commit into
colindembovsky:mainfrom
tiredofchoosing:main
Open

Bugfix: Replace Node20 execution handler with Node20_1 for ReplaceTokens task#248
tiredofchoosing wants to merge 1 commit into
colindembovsky:mainfrom
tiredofchoosing:main

Conversation

@tiredofchoosing

@tiredofchoosing tiredofchoosing commented Mar 12, 2026

Copy link
Copy Markdown

Reason

Node20 execution handler is no longer supported in latest versions of azure-pipelines-agents (v3.x and v4.x, for example 4.268).

There is an error when executing pipelines with the latest version of the ReplaceTokens task:

==============================================================================
Task         : Replace Tokens
Description  : Replaces tokens in a file using RegEx. Values come from any variable defined in the current Environment.
Version      : 1.2.29
Author       : Colin Dembovsky (colinsalmcorner.com)
Help         : [More Information](https://github.com/colindembovsky/cols-agent-tasks/tree/master/Tasks/ReplaceTokens)
==============================================================================
##[error]A supported task execution handler was not found. The task does not carry an implementation that is compatible with your current operating system 'Windows(X64)'. Contact the task author for more details.
##[debug]System.InvalidOperationException: A supported task execution handler was not found. The task does not carry an implementation that is compatible with your current operating system 'Windows(X64)'. Contact the task author for more details.
   at Microsoft.VisualStudio.Services.Agent.Worker.TaskRunner.RunAsyncInternal() in D:\a\_work\1\s\src\Agent.Worker\TaskRunner.cs:line 147
   at Microsoft.VisualStudio.Services.Agent.Worker.TaskRunner.RunAsync() in D:\a\_work\1\s\src\Agent.Worker\TaskRunner.cs:line 81
   at Microsoft.VisualStudio.Services.Agent.Worker.StepsRunner.RunStepAsync(IStep step, CancellationToken jobCancellationToken) in D:\a\_work\1\s\src\Agent.Worker\StepsRunner.cs:line 369

Workaround for Azure DevOps pipelines and self-hosted agents:

Manually update task.json file in downloaded (cached) version of the task in the agent folder agent\_work\_tasks

Related links:

Changes

  • Replaced Node20 execution handler with Node20_1 for the ReplaceTokens task

@tiredofchoosing tiredofchoosing changed the title replace node20 with node20_1 Bugfix: Replace Node20 execution handler with Node20_1 for ReplaceTokens task Mar 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant