Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Extension validation error The task.json file was not found in contribution xxx

I am trying to publish a private extension for AzureDevops on Visual Studio Marketplace. It is a .vsix package. The packaging goes well, I upload a package, but it doesn't pass a verification. I obtain the following error:

Extension validation error The task.json file was not found in contribution xxx

And I don't know why I get this one as I have a task.json file. It is the first time that I am trying to upload a package, so I really have no idea where the problem comes from.

like image 731
KateHamster Avatar asked Sep 16 '25 04:09

KateHamster


2 Answers

As Shayki mentioned that is one possible cause for the issue. Another possible issue will be the folder/path name

Make sure you will give the same name for the files as the name of the properties

"contributions": [ 
     {
            "id": "..."
            "types": "..."
            "targets": "..."
            "properties": {
                  "name": "buildAndReleaseTask"
            }
      }
],
"files": [
    {
      "path": "buildAndReleaseTask"
    }
  ]

enter image description here

like image 133
Jayendran Avatar answered Sep 19 '25 06:09

Jayendran


In the vss-extension.json you have this section:

"contributions": [ 
     {
            "id": "..."
            "types": "..."
            "targets": "..."
            "properties": {
                  "name": "buildAndReleaseTask"
            }
      }
]

In my case the task.json was in buildAndReleaseTask folder, and the name in the properties was something else (the name you got in the error message), when I changed it to the name to buildAndReleaseTask (where the task.json exist) the error disappeared.

like image 37
Shayki Abramczyk Avatar answered Sep 19 '25 08:09

Shayki Abramczyk