NAnt SDK Documentation - v0.92

EnvironmentFunctions.NewLine Method 

Gets the newline string defined for this environment.

[Visual Basic]
<Function(Name:="newline")>
Public Shared Function NewLine() As String
[C#]
[Function(Name="newline")]
public static string NewLine();

Return Value

A string containing CRLF for non-Unix platforms, or LF for Unix platforms.

Example

Output two lines in a log file.

    
<echo file="build.log" message="First line${environment::newline()}Second line" />
    
  

See Also

EnvironmentFunctions Class | NAnt.Core.Functions Namespace