OctoPack NuGet Package Version and Replacement tokens

Is there a reason why Octopack doesn’t make use of the following nuget replacement tokens ?

  • $id$ The Assembly name
  • $version$ The assembly version as specified in the assembly’s AssemblyVersionAttribute.
  • $author$ The company as specified in the AssemblyCompanyAttribute.
  • $description$ The description as specified in the AssemblyDescriptionAttribute.

Infact it always produces the 1.0.0 version, when building from visual studio. Is there a way to auto increment it ?

I’m looking to use TFS to update the version number ins the nspec file. I haven’t looked at it, but I don’t think it’s going to be that simple.

Hi Tim,

When using TFS, version issue can be resolve by passing it via the MSBuild command line using:

/p:OctopusPackageVersion=1.3.1

but I was wondering if there is a way to autoincrement it when using visual studio to build the solution.

Nabeel

Thanks, Nabeel. Worked like a charm.