ToolTask.AdjustCommandsForOperatingSystem(String) Method

Definition

Replace backslashes with OS-specific path separators, except when likely that the backslash is intentional.

C#
protected virtual string AdjustCommandsForOperatingSystem(string input);

Parameters

input
String

Returns

Remarks

Not a static method so that an implementation can override with more-specific knowledge of what backslashes are likely to be correct.

Applies to

Product Versions
MSBuild 15, 16, 17
MSBuild (.NET Core) 15, 16, 17