EnvironmentFunctions.

NewLine() Method

Summary

Gets the newline string defined for this environment.
Assembly
NAnt.Core.dll
Namespace
NAnt.Core.Functions
Containing Type
EnvironmentFunctions

Syntax

[Function("newline")]
public static string NewLine()

Examples

Output two lines in a log file.

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

Attributes

Type Description
FunctionAttribute Indicates that the method should be exposed as a function in NAnt build files.

Return Value

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