Version with build number (TFS or VSTS)
See original GitHub issueThis is more a question than an issue.
Any hints on how to update the version number to use the build number from TFS or VSTS? Previously I used a powershell script that was run prior to the build step that changed the version number in the assembly information, but now the version is contained in the project json file this script is useless.
Must also include 3 numbers in the version now and star the last (4.6.2.-*) where --version-suffix will change the last part. This means I can’t insert the build number (4.6.16334,03) which represents the major, minor, day and build instance for the day. This format is very important to us and the way we use CI.
Environment data
dotnet --info
output:
.NET Command Line Tools (1.0.0-preview2-003131)
Product Information: Version: 1.0.0-preview2-003131 Commit SHA-1 hash: 635cf40e58
Runtime Environment: OS Name: Windows OS Version: 10.0.14393 OS Platform: Windows RID: win10-x64
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:21 (8 by maintainers)
btw… with csproj tooling you can also define a completely custom properties to use during build. e.g.:
which could be used from CI using:
(note that the restore is necessary because of https://github.com/NuGet/Home/issues/4337) This may solve @Allann’s original issue.
E.g. via
or
typeof(MyClass).Assembly.…