I have a very simple file on which I’m applying the “Substitute variables in files”. This was created manually using Notepad++ (UTF-8). With “Show all symbols” enabled in Notepad++, it looks like this:
II don’t think this would be an issue if the file were to be consumed by a .NET application or Powershell, but unfortunately it is to be consumed by an Excel VBA piece of code, which doesn’t detect the line break without the CR in it.
Why is “Substitute variables in files” changing those characters which are not part of the variable substition? Is there a way to get it to not do it?
Your hint led me to check the NuGet package, and sure enough, the file is missing the CR in there. I assumed it was Octopus because it’s the visible part but it must be either TeamCity or NuGet.
I’ll update once I find out and solve the problem just in case other people get here.