How we use Cake to build .NET Core apps and version assemblies – Stackify
stackify.com
stackify.com
Version ?= 2.0.0.1
$(version): $(init)
sed s'/$${Version}/$(Version)/g' src/Version.template.cs > build/Version.cs
Not to mention it's doing a lot of other things I would call anti-patterns, like running differently if it's on the CI server ("if(bambooRelease)") and checking in build artifacts.