tfx extension publish - fails to detect existing extension
See original GitHub issueAfter having sidestepped this issue for two days or so and publishing through the web gui I decided to have another go at publishing an extension from the command line. But the best I can get is:
tfx extension publish --token xxx --rev-version
TFS Cross Platform Command Line Interface v0.3.37
Copyright Microsoft Corporation
Checking if this extension is already published
It isn't, create a new extension.
Failed Request: Conflict(409) - The extension already exists.
I am pretty sure that the extension cannot both be published and not. I am also using --rev-version option and it is creating new .vsix files that I can publish from gui.
I am using visual studio online and it does not seem to help to:
- use v0.3.37 instead of v0.3.30 from npm
- create a new extension
- fiddle around with the authentication token
- try to provide a service-url
Would be grateful for any suggestion how to get past or diagnose this.
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Publish from the command line - Azure DevOps
Open a command prompt to the root directory of your extension. Run the following command to publish your extension.
Read more >tfx command line publish issue for Azure DevOps Server 2020 ...
I've got the following error message during either the "publish extension" or the "install extension" tasks. error: The given key was not present...
Read more >tfx extension create failed while running npm script
I had the same issue. I guess the postbuild command is wrong: "postbuild": "npm run package-extension -- --rev-version". This works:
Read more >Azure DevOps Extension Tasks 1.1.75
Pass in the desired Extension version, check the Override tasks version ... to publish the extension, which will fail your build/release.
Read more >Creating an Azure Pipelines extension - Christian Bär
The existing task instances also don't get removed from build ... Run tfx extension publish --help in the command line to find out...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
99% of the time, this message means the identity associated with the PAT does not have access to the extension that has already been published to the Marketplace(which is why the message says “It isn’t [published yet”]). This can happen if you sign in and publish the extension under one VSTS identity, but then create and try to use a PAT associated to a different VSTS identity
I think we should improve the message here to call this out better since this isn’t obvious today.
I figured this out. My Microsoft Identity was a complete mess and I had to delete a bunch of extraneous directories and “move” my Azure DevOps org to my default tenant