TaskLoggingHelper.LogCommandLine Method

Definition

Logs the command line.

Overloads

LogCommandLine(MessageImportance, String)

Logs the command line for a task's underlying tool/executable/shell command, using the given importance level. Thread safe.

LogCommandLine(String)

Logs the command line for a task's underlying tool/executable/shell command. Thread safe.

LogCommandLine(MessageImportance, String)

Source:
TaskLoggingHelper.cs

Logs the command line for a task's underlying tool/executable/shell command, using the given importance level. Thread safe.

C#
public void LogCommandLine(Microsoft.Build.Framework.MessageImportance importance, string commandLine);

Parameters

importance
MessageImportance

The importance level of the command line.

commandLine
String

The command line string.

Remarks

This method is not thread-safe.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

LogCommandLine(String)

Source:
TaskLoggingHelper.cs

Logs the command line for a task's underlying tool/executable/shell command. Thread safe.

C#
public void LogCommandLine(string commandLine);
C#
[System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]
public void LogCommandLine(string commandLine);

Parameters

commandLine
String

The command line string.

Attributes

Remarks

This method is not thread-safe.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1