build

Azure Pipeline - Increment build number and display in web app

独自空忆成欢 提交于 2020-08-24 11:08:39
问题 I have the following simple build pipeline working in Azure DevOps with releases deployed to a staging slot. I would like to have a build revision/version string and that is auto-incremented. I then want to display this in my web app so I can tell which version of the software is in production. Currently I display the version string from the .csproj file. Something like this in a <Version>1.1.4.7</Version> And then displayed on a web page using the following code: Version: @typeof(Startup)

Azure Pipeline - Increment build number and display in web app

喜欢而已 提交于 2020-08-24 11:07:02
问题 I have the following simple build pipeline working in Azure DevOps with releases deployed to a staging slot. I would like to have a build revision/version string and that is auto-incremented. I then want to display this in my web app so I can tell which version of the software is in production. Currently I display the version string from the .csproj file. Something like this in a <Version>1.1.4.7</Version> And then displayed on a web page using the following code: Version: @typeof(Startup)