microsoft / tfs-cli

Cross-platform CLI for Microsoft Team Foundation Server and Visual Studio Team Services
MIT License
372 stars 132 forks source link

Cannot have multiple 'addressable' files with the same 'assetType'. #364

Closed Nusserdt closed 3 years ago

Nusserdt commented 3 years ago

I want to implement a pack all functionality for my repository. So I try to create multiple extensions with one command:

tfx.cmd extension create --json --no-color --root root --manifests "root\Samples\SampleTask\vss-extension.json" "root\Samples\SampleTask2\vss-extension.json" --loc-root root

but the tfx-cli response is:

warning: Multiple values found for 'manifestVersion'. Ignoring future occurrences and using the value '1'.
warning: Multiple values found for 'namespace/extensionId/id'. Ignoring future occurrences and using the value '"SampleTask"'.
warning: Multiple values found for 'name'. Ignoring future occurrences and using the value '"SampleTask"'.
warning: Multiple values found for 'version'. Ignoring future occurrences and using the value '"0.1.0"'.
warning: Multiple values found for 'publisher'. Ignoring future occurrences and using the value '"PTC"'.
warning: Multiple values found for 'description'. Ignoring future occurrences and using the value '"The task should provide a api to the [tfx-cli|https://github.com/microsoft/tfs-cli]"'.
error: Error: There were errors with your extension. Address the following and re-run the tool.
error: Cannot have multiple 'addressable' files with the same 'assetType'.
error: File1: Samples/SampleTask/images/icon.png, File 2: Samples/SampleTask2/images/icon2.png (asset type: Microsoft.VisualStudio.Services.Icons.Default),Cannot have multiple 'addressable' files with the same 'assetType'.
error: File1: Samples/SampleTask/images/icon.png, File 2: Samples/SampleTask2/images/icon2.png (asset type: Microsoft.VisualStudio.Services.Icons.Default)

What I am doing wrong? Building each extension one by one work's fine.

dwilsonactual commented 3 years ago

You cannot build multiple extensions in one invocation of tfx.