To demonstrate, we have package X, it has these following versions: 1.0.37-Dev, 1.0.36, 1.0.32-Dev, 1.0.31-Dev. The create new release screen should show the latest release, 1.0.36. It currently lists 1.0.37-Dev.
I really appreciate you posting a new build so quickly! Thanks. I’m not sure if this is fixed though. I upgraded to 1.6.0.1714 this morning and it is still showing pre-releae packages as latest versions. I’ve attached a screenshot visualizing the problem.
Hi,
We’re using 1.6.0.1714 . Latest Version doesn’t seem to be working for us, or I’m not understanding how it’s supposed to work. It’s picking 1.3.4815.21711 over 1.4.4876.23725
1.4.4876.22144
1.3.4864.31673
1.3.4862.17572
etc.
I’ve attached a couple of images. The Latest Version it picks for the mobo2go-CompositeService is very old, created on 15th March. There have been dozens of pacakge created since then. The same is happening for the other packages.
Note that the version I type in to create the package isn’t one that will match any of the packages, the numbering system is simpler. That’s why it says the last release was 1.4.0-p3.
I’ve just found a way to fix the “latest version” problem. Our NuGetPackages folder had 963 packages in it. I just copyied that to a backup folder, then deleted all but the most recent 200 .nupkg files. Now the latest version is picked up correctly in all our projects.
So there must be some weird interaction between the latest Octopus and NuGet.Server when there are a lot of files?
Yes, mostly fixed, thanks. One oddity is that in the ‘Select package version’ popup all the releases have today’s date, not the date they were created, or the date stamps of the files on the server’s drive. It looks like the time shown is related to the date of the most recently added package which was today.
Not sure if this can help at all, but I just upgraded to 1.6.1718 and our published dates are correct. We are not using the same NuGet server as you, we are using TeamCity.
I guess it would be nice if Octopus provided an option in Create Release page for us to select only stable packages from NuGet feed, just like the NuGet Package Manager does in Visual Studio. That way we could have both stable and prerelease packages in the same feed and still be able to select the latest stable version or the latest prerelease version without having to pick a specific number.