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:
https://ci.appveyor.com/project/dkarzon/dropnetrt

Here is the github repo:
https://github.com/DropNet/DropNetRT

I have set this up in another project before and it's worked https://ci.appveyor.com/project/dkarzon/dropnet 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

Generic

? 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

Recent Discussions

22 Mar, 2019 07:18 PM
22 Mar, 2019 02:20 PM
22 Mar, 2019 11:00 AM
22 Mar, 2019 02:51 AM
22 Mar, 2019 12:46 AM

 

21 Mar, 2019 08:34 PM
21 Mar, 2019 05:38 PM
21 Mar, 2019 06:16 AM
20 Mar, 2019 11:39 PM
20 Mar, 2019 09:03 PM
20 Mar, 2019 08:55 PM