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

MSBuild 17 i druge verzije
Proizvod Verzije
MSBuild 15, 16, 17
MSBuild (.NET Core) 15, 16, 17

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

MSBuild 17 i druge verzije
Proizvod Verzije
MSBuild 15, 16, 17
MSBuild (.NET Core) 15, 16, 17