Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

CommandLineBuilder.AppendTextWithQuoting Method

Appends the command line with string, and surrounds the string with quotations marks as necessary.

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

protected void AppendTextWithQuoting(
	string textToAppend
)

Parameters

textToAppend
Type: System.String

The string to append to the command line.

This method does not append the command line with a space, before executing.

AppendTextWithQuoting(@"Folder name\filename.cs") yields \"Folder name\\filename.cs\".

.NET Framework

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