Nuget Package build version

Damian Karzon's Avatar

Damian Karzon

23 Apr, 2015 01:26 AM

I am trying to build a nuget package from a github repo but I can't get it to inject the correct version number into the nuget package.
my nuspec has <version>$version$</version> set so it knows to put it in there and my appveyor.yml has version: 1.4.{build} to include the build number in the version number.
This part works fine for versioning the build and even the assembly patcher but the package version always comes out as 1.0

Here is the build:

Here is the github repo:

I have set this up in another project before and it's worked but I can't work out why this one doesn't.

  1. Support Staff 1 Posted by Feodor Fitsner on 23 Apr, 2015 02:18 AM

    Feodor Fitsner's Avatar

    That's indeed weird. If you download DropNetRT.1.0.nupkg and check its contents you'll see that assembly is correctly versioned.

    Maybe it's because of WinRT?... At the end of the day you can try replacing automatic packaging with your own nuget pack command and pass version in parameter:

    nuget pack ... -version %appveyor_build_version%
  2. 2 Posted by Damian Karzon on 23 Apr, 2015 06:26 AM

    Damian Karzon's Avatar

    Its PCL that's not specifically WinRT but its very strange as the other library works with almost identical settings.

    Any chance there is more logging on the build that I can't see?

    I'll give the manual nuget call a try, thanks.

  3. 3 Posted by Harry McIntyre on 16 May, 2015 02:23 PM

    Harry McIntyre's Avatar

    I get this problem too with my projects :(

  4. Support Staff 4 Posted by Feodor Fitsner on 16 May, 2015 04:50 PM

    Feodor Fitsner's Avatar

    Are those public projects?

  5. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 01:56 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac