Slow "File Content Replacer" in TeamCity
<p>We're using TeamCity's build feature <em>File Content Replacer</em> to replace the build version number in multiple AssemblyVersion.cs files, following TeamCity's documentation on <a href="https://confluence.jetbrains.com/display/TCD9/File+Content+Replacer#FileContentReplacer-Changingonlythelastversionpart/buildnumberoftheAssemblyVersionattribute:" rel="nofollow noreferrer">Changing only the last version part / build number of the AssemblyVersion attribute:</a>. </p>

<p>Our file list look like this:</p>

<pre><code>CommonAssemblyInfo.cs
**\Properties\AssemblyInfo.cs
</code></pre>

<p>It works, but it sometimes takes up to 10 minutes before it even starts. This usually happens when the build haven't run for 24 hours or more, but sometimes on subsequently builds also.</p>

<p><a href="https://i.stack.imgur.com/TbC2D.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/TbC2D.png" alt="build log"></a></p>

<p>Any ideas why this happens? We also have multiple projects with the exact same setup, where this never happens.</p>