CommandLineBuilder.AppendFileNameWithQuoting(String) Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Appends a file name. Quotes are added if they are needed. If the first character of the file name is a dash, "." is prepended to avoid confusing the file name with a switch This method does not append a space to the command line before executing.
protected:
void AppendFileNameWithQuoting(System::String ^ fileName);
protected void AppendFileNameWithQuoting (string fileName);
member this.AppendFileNameWithQuoting : string -> unit
Protected Sub AppendFileNameWithQuoting (fileName As String)
- fileName
- String
The file name to append
AppendFileNameWithQuoting("-StrangeFileName.cs") => ".-StrangeFileName.cs"
In the future, this function may fixup 'text' to handle literal embedded quotes.