I have a .NET 8 web application that displays the product's version to the user. Within the csproj file i have the following setting among others:
<PropertyGroup>
<VersionPrefix>1.0.0.1</VersionPrefix>
</PropertyGroup>
Instead of manually updating the build value 1.0.0.[1] from time to time I would like this value to be updated automatically with the current build's changeset. This could be done either when checking in code or when publishing/building. Either works for me.
For example if I published changeset 1423 I would expect the version to be 1.0.0.1423.
I have seen a couple posts but they all mention getting the latest TFS changeset rather than the current build changeset which would create an issue if I were to publish an older build.
I am not sure if this is even possible but I will gladly listen to suggestions.



