Open pkuijper opened 2 months ago
Hi @pkuijper I cannot reproduce your issue using node
version 22.3.0
, npm
version 10.8.1
, and tfx
version 0.17.0
(currently the latest one). Is it possible that tfx
cannot read the task.json
file due to lack of access rights? Can you try to run it as administrator?
node version 22.3.0 npm version 10.8.1
File structure:
I tested the task.json content on https://jsonlint.com/, and it is valid. if i open file "test.sample-build-release-task-0.0.1.vsix" as a zip it contains the task.json file.
i followed steps https://learn.microsoft.com/en-us/azure/devops/extend/develop/add-build-task?view=azure-devops and the steps in https://4bes.nl/2021/02/21/create-a-custom-azure-devops-powershell-task/
I login to our tfs server successfully with the command "tfx login --auth-type pat --token **** --service-url https://mytfsserver/mycollections" but uploading the task fails with command "tfx build tasks upload --task-path C:\temp\SampleTask"