Environnent.NewLine seems to be resolving to two spaces " " (as are vbCrLf and ControlChars.CrLF). Using StringBuilder, AppendLine is doing the same.
I've been racking my brain and searching the Internet trying to figure out why this the way it is, but am coming up empty.
I am trying to generate .bat file based on user interface decisions. I need to have separation between lines. I'm trying:
Dim sb as New StringBuilder
With sb
.Append("Something")
.AppendLine()
.Append("Something else{0}", Environment.NewLine)
.Append("Third line")
End With
When I resolve sb.ToString(), everything is on one line. Where crlf should be, there are two spaces (hex 20).
This is with Visual Studio 2010 Ultimate.
Help! Thanks.