I'm trying to add additional data to each file I'm deploying to iis.
In particular I need to add a version number to each deployment file during the build process or to the deployed/packaged files.
So far the only solution I could come up with is to have a pre or post build event that effectively adds a comment to each file, mostly to the html, css and javascript files which includes the version number.
Doing this would be fairly simple but it seems fairly hacky and was wondering if anyone knew a better way.
The information doesn't need to be a comment, could be metadata or any other means, as long as the file has a record of the version number in there is all that matters.
The version number is generated by teamcity and is put on a file on the file system which is used to add to the assemblies generated.
Thanks.