how to push the version into the .nuspec for chocolatey?
How can I get the ${version} number passed into the .nuspec file so chocolatey can use it?
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
1 Posted by eric on 27 Aug, 2014 02:55 PM
I did it with some powershell:
cat timberwinr.nuspec.template|%{$_-replace "\$\{version\}",$env:APPVEYOR_BUILD_VERSION} > timberwinr.nuspec
Replaces ${version} with the version and writes it out as the .nuspec file.
Support Staff 2 Posted by Feodor Fitsner on 27 Aug, 2014 04:13 PM
Or you can specify version in
nuget pack
command. Otherwise, if nuget pack is run against VS project file it extracts package version from assembly meta-information.Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 01:47 AM.