AssemblyInfo Patcher
AssemblyInfo Patcher build feature allows to set a build number to an assembly automatically, without having to patch AssemblyInfo.cs
files manually. When adding this build feature you need only to specify version format. Note, that you can use TeamCity parameter references here.
When configured, TeamCity searches for all AssemblyInfo files (.cs
, .vb
or .cpp
) in their standard locations under checkout directory and replaces parameter for AssemblyVersion
and AssemblyFileVersion
attributes with the build number you have specified in TeamCity web UI.
Note, that this feature will work only for "standard" projects, i.e. created by means of Visual Studio wizard, so that all the AssemblyInfo files and content have standard location.
At the end of the build the files are reverted to initial state.