How to tell NuGet installer to always get latest version of packages
Hello,
In our NuGet Installer TeamCity build step, we enable 'Update Packages' and hope that NuGet will always pull down the latest version of packages. But it doesn't seem to download the latest version.
If the package version in package.config is 0.0.35, even though 0.0.36 is available now, NuGet will sill pull down 0.0.35.
Currently, we have to manually update the version number in package.config to workaround this.
Is it possible to tell NuGet to download the latest version of packages without us modifying the package.config?
Any help will be appreciated!
Ge
Please sign in to leave a comment.
Hi Ge,
How have you configured the update section? If TeamCity can find 0.0.36 in the feed that you have configured, it should automatically update if it's properly configured, updating as well whatever is written in packages.config. Are you sure that the feed already contains 0.0.36 by the time the teamcity build hits?
Hi Denis,
Please see attached screenshot:
Should I use 'Update via solution file' instead?
NuGet.exe we use is 3.3.0, should we try different version?
Thanks again!
Hi Ge,
update via solution file is an option that you might try to see if it works. Can you confirm that by the time you use it the newer version is already in the feeds?
If that's the case, please send us a build log, or at least post here the "Nuget installer" step part.
Using "update via solution file" seems work for me.
I'll let our users to try and get back to you shortly. Thanks!
Where can I upload the build log? The 'Insert' option here only accepts image.
Here is the screenshot of NuGet Installer build step:
We want to use the 'update via packages.config file' mode, but it trowed following error, any help will be appreciated!
You can either use the "Submit a request" button above, or follow the steps here: https://confluence.jetbrains.com/display/TCD10/Reporting+Issues#ReportingIssues-UploadingLargeDataArchives
If you use the upload method, please give the archive a recognizable name, then tell us so we can find it quickly.
Uploaded via "Submit a request". Thanks!
https://teamcity-support.jetbrains.com/hc/en-us/requests/1050689