Export (0) Print
Expand All

CommandLineBuilder.AppendFileNamesIfNotNull Method (ITaskItem[], String)

Appends the command line with the list of file names in the specified ITaskItem array, separated by the specified delimiter.

Namespace:  Microsoft.Build.Utilities
Assembly:  Microsoft.Build.Utilities.v4.0 (in Microsoft.Build.Utilities.v4.0.dll)

public void AppendFileNamesIfNotNull(
	ITaskItem[] fileItems,
	string delimiter
)

Parameters

fileItems
Type: Microsoft.Build.Framework.ITaskItem[]

The task item specifications to append. If the array is null, then this method has no effect.

delimiter
Type: System.String

The delimiter to put between task item specifications in the command line.

This method appends the command line with file names, and surrounds the file names with quotation marks as necessary. The file names are separated by the specified delimiter.

If the command line is not empty, then this method also appends the command line with a space, before the file names.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0
Show:
© 2015 Microsoft