Inedo Community Forums Forums
    • Recent
    • Tags
    • Popular
    • Login

    Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.

    If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!

    Auto download packages to disk upon NuGet package restore.

    Scheduled Pinned Locked Moved Support
    progetnuget
    4 Posts 1 Posters 18 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ? This user is from outside of this forum
      Guest
      last edited by

      Hello,

      I am currently evaluating ProGet as a way to keep better control over third party packages in my company's shared .NET environment. So far everything is looking great. However, there is one feature we were hoping for that I have not been able to find anything for so far. We would like to have any package restored from NuGet through the ProGet feed during the build, to automatically download to the server's local disk. I know we can do a mass download for a feed or download each package individually, but we would prefer to have it download when restored so we only have what the developers are using and to hold versions of packages that have been removed from NuGet. Has this ever come up before? Do you have any suggestions?

      Any help would be appreciated.

      Product: ProGet
      Version: 3.1.5

      1 Reply Last reply Reply Quote 0
      • ? This user is from outside of this forum
        Guest
        last edited by

        By default, connector packages are cached on the ProGet server the first time they are downloaded/requested by a client. However, they do not appear as local packages in the ProGet UI. Is this what you mean?

        1 Reply Last reply Reply Quote 0
        • ? This user is from outside of this forum
          Guest
          last edited by

          I have tried using both the NuGet Package GUI inside of visual studio and the command line: nuget.exe restore "<package location" -source "my ProGet feed". These were both able to restore packages that I had white listed in my ProGet feed, but I could not find the .nupkg anywhere on the server hard drive. I was expecting them to download to C:\ProgramData\ProGet\Packages\Default where the rest of the packages are, but they were not there, and a search of the entire hard drive showed they were not saved to disk anywhere.

          It would be nice to have it show up in the ProGet UI as well, but more importantly we were hoping to have any package our application teams restore to be written to our server's hard drive.

          1 Reply Last reply Reply Quote 0
          • ? This user is from outside of this forum
            Guest
            last edited by

            Make sure your feed is configured to cache packages (Admin > Manage Feeds > Edit Properties) and you'll see them in C:\ProgramData\ProGet\Packages\Default\_cache once they've been downloaded/restored:

            Imgur

            1 Reply Last reply Reply Quote 0

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            • 1 / 1
            • First post
              Last post
            Inedo Website Home • Support Home • Code of Conduct • Forums Guide • Documentation