Teamcity version and nuget version are not the same

i have a TC task to deploy a build to environment x. octo server reports a success however inspecting the contents of the release indicates the package version is not the same as the TC version. i have to use the ‘create release’ feature that then retrieves the correct nupkg and all is good. What can i do to ensure the correct nupkg is retrieved?


When you tell TeamCity to create a release, you can pass additional command line arguments. There you can specify which NuGet package version number to use. The details are here:

Hope that helps,


HI the problem was i was trying to deploy in the same config as the build. however browsing the forums i see that it needs to be a separate config and that in fact does work. Docs could do with an update.