Setting Build Version Using AppVeyor and ASP.Net Core

John Reilly April 25, 2017
Source
AppVeyor has support for setting the version of a binary during a build. However - this deals with the classic ASP.Net world of AssemblyInfo. I didn't find any reference to support for doing the same with dot net core. Remember, dot net core relies upon a <Version> or a <VersionPrefix> setting in the .csproj file. Personally, <Version> is my jam. However, coming up with your own bit of powershell that stamps the version during the build is a doddle; here we go: You can invoke this script as part of the build process in AppVeyor by adding something like this to your appveyor.yml. It will keep the first 3 parts of the version in your .csproj (eg "1.0.0") and suffix on the build number supplied by AppVeyor.

Discussion in the ATmosphere

Loading comments...