NuGet Installer not installing pre-release packages

I have a fairly small c# Application that depend on a pre-release package. The first build step is a NuGet Installer. However it fails when trying to install the pre-release NuGet package. Non-pre-release packages works fine.

In the NuGet Installer runner I'm using the following configuration:
NuGet version: 2.7.3
Restore Mode: Restore
Update Packages: Checked
Update Mode: Via solution file
Include pre-release packages: Checked

The last option in particular makes me believe this should work, but I haven't been able to get it to install the pre-release package. I've, blindly, tried various permutations of NuGet version and other options to no avail. As a work around I'm currently using a Command Line runner instead, but I would much rather use this fabulous runner.

Any advice? Shoud I file a bug?

4 comments
Comment actions Permalink

Hi,

Please compare the command line which your Command Line runner uses with command which is created by NuGet Installer (you can look up the command line in the build log). Is there any difference?

0
Comment actions Permalink

Yeah, the command line that worked I think had the "-Prerelease" flag in there and also used the "upgrade" command. The command that TeamCity issued that did not worked also used "update" but had no "-Prerelease flag". We've since just switched to a different library that provides a proper NuGet package so the problem is over for us. But it just felt like a bug as there was a checkbox to enable prerelease packages.

0
Comment actions Permalink

Which version of TeamCity and NuGet plugin do you use (Administration -> Plugins List)? Do you use TeamCity NuGet Feed?
I've tried to reproduce in TC 8.1.2 and it works fine for me. Could you please provide a screenshot of NuGet Installer settings and generated "update" command line from build log?

0
Comment actions Permalink

Thanks for looking into this. Let me try to set up a proper reproducer and get back to you.

0

Please sign in to leave a comment.