overwrite nuget packages in feed on visual studio team services

Ingo B

while using

nuget.exe push \\share\Packages\*.nupkg -Source "https://myvsts.pkgs.visualstudio.com/_packaging/tcpcm/nuget/v3/index.json" -ApiKey VSTS

i got an

Response status code does not indicate success: 409 (Conflict).

error

is there a way to overwrite all packages that have already been uploaded?

Leo Liu-MSFT

is there a way to overwrite all packages that have already been uploaded?

The simple answer is No. Jonathan Myers`s answer pointed out the correct document: Understand immutability of packages.

Once you publish a particular version of a package to a feed, that version number is permanently reserved. You cannot upload a newer revision package with that same version number, or delete it and upload a new package at the same version.

That because many package clients, including NuGet, keep a local cache of packages on your machine. Once a client has cached a particular package@version, it will return that copy on future install/restore requests. If, on the server, you replace package@version (rev 1) with a new package@version (rev 2), the client is unable to tell the difference. This can lead to indeterminate build results from different machines.

So we could not overwrite all packages that have already been uploaded, even we could not delete them and re-uploaded. To resolve this issue, the only way is that upload the packages with a new version.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

How to use Visual Studio Team Services as a NuGet feed in LINQPad

How can I publish and access nuget packages within Visual Studio Team Services

Visual Studio Team Services Continuous Integration: NuGet Restore Task Failed

SBT Publish to Visual Studio Team Services (Web) Packages Plugin Repo

How can I update a NuGet package on Visual Studio Team Services after NuGet Publish?

Visual Studio Team Services Reporting

How to use private npm package feed on visual studio team services build and release management

Delete NuGet packages from Visual Studio Online Package Feed instead of Unlist

AutoMapper package 5.1.1 is not found when Nuget restore on hosted build agent in Visual Studio Team Services

Use custom NuGet feed in Visual Studio Online

Visual Studio Team Services: Task Colour Blue?

Visual Studio Team Services: delete repository

Visual Studio Team Services with on-premises machines

Empty build artifacts in Visual Studio Team Services

Visual Studio Team Services Import History

How to delete a project - Visual Studio Team Services

Visual Studio Team Services - how to change language?

Visual Studio Team Services: Abandoned Builds

Visual Studio Team Services - edit link settings

Visual Studio Team Services - Waiting for an available agent

Visual Studio Team Services build Typescript error

Is it possible to format code in Visual Studio Team Services

Assigning users to tasks in Visual Studio Team Services

Teamcity setup with Visual Studio Team Services

Is There A Way To Backup Visual Studio Team Services Projects?

Protecting a git branch in Visual Studio Team Services

Configure Visual Studio Team Services to deploy WebJobs

Visual Studio Team Services Build Notifications

Migration between Visual Studio Team Services projects

TOP Ranking

HotTag

Archive