Ok, so I've got our TeamCity Build Server building a new shiny ASP.NET Core 1.0 web application. I can Build, Publish and Deploy all from TeamCity, great.
I am struggling to see how I can use TeamCity to Version the build, and not just the version suffix suffix either. So I can see that the version is set in the project.json file using the version property.
I want to use TeamCity Parameters like this:
Then use these to create a build number like so:
So I did try setting the version
in project.json file to just *
but the application wouldn't build using the CLI tools.
The best I could achieve is getting a version like this 1.0.0-1.1.26
using the version-suffix flag to replace * with 1.1.26 (the TeamCity build number).