tag:help.appveyor.com,2012-11-13:/discussions/questions/481-how-to-push-the-version-into-the-nuspec-for-chocolateyAppVeyor: Discussion 2018-08-25T01:47:51Ztag:help.appveyor.com,2012-11-13:Comment/343549432014-08-27T13:59:09Z2014-08-27T13:59:09Zhow to push the version into the .nuspec for chocolatey?<div><p>How can I get the ${version} number passed into the .nuspec file
so chocolatey can use it?</p></div>erictag:help.appveyor.com,2012-11-13:Comment/343549432014-08-27T14:55:20Z2014-08-27T14:55:20Zhow to push the version into the .nuspec for chocolatey?<div><p>I did it with some powershell:</p>
<p>cat timberwinr.nuspec.template|%{$_-replace
"\${version}",$env:APPVEYOR_BUILD_VERSION} >
timberwinr.nuspec</p>
<p>Replaces ${version} with the version and writes it out as the
.nuspec file.</p></div>erictag:help.appveyor.com,2012-11-13:Comment/343549432014-08-27T16:13:34Z2014-08-27T16:13:34Zhow to push the version into the .nuspec for chocolatey?<div><p>Or you can specify version in <code>nuget pack</code> command.
Otherwise, if nuget pack is run against VS project file it extracts
package version from assembly meta-information.</p></div>Feodor Fitsner