Inserting build number into a master page

At build time, I'd like to be able to insert a build number or time stamp into my JS and CSS includes in my ASP.NET master page, to ensure that the browser is aware of changes in those files.  I have look at command line tools (FART, others) but I wanted to see if there was a recommended way for TeamCity to make simple find-and-replace changes in code.


1 comment
Comment actions Permalink

Hi Adrian

You'll need to update them within a build script.
A build number is available as a predefined paramerer.

Also there is AssemblyInfo Patcher but it's intended for C#, VB or C++ projects.


Please sign in to leave a comment.