Skip to content
This repository has been archived by the owner on Feb 19, 2019. It is now read-only.

[Enhancement] Cpack should support -Version #526

Closed
FransBouma opened this issue Jul 24, 2014 · 5 comments
Closed

[Enhancement] Cpack should support -Version #526

FransBouma opened this issue Jul 24, 2014 · 5 comments

Comments

@FransBouma
Copy link

Hi,

cpack /? says it supports a -Version command line parameter with as argument the version to overwrite the version in the nuspec file. However it never passes this to the nuget.exe called. So this command line parameter doesn't do anything.

@ferventcoder
Copy link
Contributor

It appears that it supports a -Version argument but that help menu is the same across all commands. We are rewriting choco in c# and the help menus are very specific.

@FransBouma
Copy link
Author

I don't think I understand what you're saying. I tried cpack -Version and it didn't pass it on to nuget.exe, (it used the version in the nuspec file). Using nuget.exe with the arguments passed by cpack worked fine.

@ferventcoder
Copy link
Contributor

I see what you mean. It is passing the help through to nuget, but choco itself doesn't support a -version option at the current time.

@FransBouma
Copy link
Author

ah... I think I understand. when I did cpack /?, I saw the nuget help, not the cpack help :) Understood. So until it's implemented (if planned), cpack doesn't support -Version, if it's required to use -Version, use nuget pack instead.

@ferventcoder
Copy link
Contributor

It's planned. :)

@ferventcoder ferventcoder changed the title Cpack -Version a.b.c.d doesn't overwrite version in nupkg [Enhancement] Cpack should support -Version Jul 24, 2014
@ferventcoder ferventcoder reopened this Jul 24, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants