Nuget package version stuck at 1.0.0

Octopus Version 3.13.3

TeamCity Version 10.0

I have a project that is using Asp.Net Core 2 and we are trying to achieve one click deployment via Team City and Octopus.

The problem I am having is that the version of the nuget package that is being sent to Octopus does not get incremented and so Octopus does not download a new version of the nuget package.

I am running the following steps:
Dotnet restore
NPM Install
Dotnet Build
Dotnet Publish

Followed by
OctopusDeploy : Create Release

In the build log you will see that it is getting a build number from the command line which is always 1.0.0 but I don’t know how to change that.

I have attached the two build logs

Axco.DNCPrototype_Build_1.0.73.log.zip (8 KB)

Axco.DNCPrototype_Deploy_to_Octopus_1.0.73.log.zip (1 KB)

Hi,

Thanks for reaching out! I think the 2 key questions here are:

  1. Where is your [Publishing artifacts] step in your build publishing the artifact/package to?

  2. Where is your Deployment step in Octopus grabbing the packages from? You can see this on the Package Feed field on the step named Deployment

Both places in (1) and (2) need to be the same. Your Octopus step seems to be set to “pick up the latest package available in the feed”, which seems to be this package version 1.0.0.

Best regards,
Dalmiro