Using TeamCity 9.1.3, I have a configuration that is using the file content replacer to specify the location of an object.
Specifically, I'm replacing ProjectReference elements with Reference elements in a VisualStudio C# project file (.csproj) and then using MSBuild to execute.
On the client, this gets expanded to:
It seems obvious that %system.teamcity.build.checkoutPath% is expanded to "C:\BuildAgent\work\4405e151309223db" and the backslashes are being consumed in the substitution process (as escape sequences?).
Is it possible for me to escape the variable expansion? The obvious of putting it in quotes didn't help (as one would expect).
I have a work-around, but this would seem to be a general problem that is likely to come up again in the future or in other situtations where there may not be a work-around, so it would be really useful to know if there is a solution.