Deploying to Nuget without listing the package

José Simões's Avatar

José Simões

04 May, 2017 11:43 AM

Is there a way to publish a package to Nuget and select that it shouldn't be listed?
If it's not there please consider to add this option.

Thanks,

  1. Support Staff 1 Posted by Ilya Finkelshte... on 04 May, 2017 08:44 PM

    Ilya Finkelshteyn's Avatar

    Hello,

    We do not have this option. But could you please clarify more? How would you do this manually? I do not see this kind of option for nuget push command...
    Per my knowledge, when you delete package from nuget feed you are actually unlist it, not really remove. Is your ask to be able to immediately delete package after it has been published? If yes, what is the scenario when it can be useful?

    Thanks,
    Ilya.

  2. 2 Posted by José Simões on 05 May, 2017 08:43 AM

    José Simões's Avatar

    Hi Ilya,

    Thanks for replying.

    I tried to look into the Nuget API but couldn’t find any documentation concerning the push request…
    When you upload a package on Nuget website there is an option for listing (or not listing) the package.
    At any time you can also go into a package and choose if it’s going to be listed or not.

    The purpose is not deleting the package (that can’t be done unless you reach out to Nuget people asking for that) but instead preventing it from showing in the listing and search forms.
    It’s still available and installable using the command line. We use this option for packages that we use internally or that are used in an intermediate build stage and are not meant to be used by “end users”.

    Right now with AppVeyor, after the package is published we have to go to Nuget web and perform this change manually.

    To summarize: even if this is not an option in the publish event we believe that this can be accomplished with a second command. So this option would be a nice addition.
    Cheers,

    De: Ilya Finkelshteyn [mailto:[email blocked]]
    Enviada: 4 de maio de 2017 21:44
    Para: José Simões <[email blocked]>
    Assunto: Re: Deploying to Nuget without listing the package [Questions #3797]

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac