共用方式為


ToolTask.LogEventsFromTextOutput Method

Parses a single line of text to identify any errors or warnings in canonical format.

MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0.

Namespace:  Microsoft.Build.Utilities
Assembly:  Microsoft.Build.Utilities.Core (in Microsoft.Build.Utilities.Core.dll)

Syntax

'Declaration
Protected Overridable Sub LogEventsFromTextOutput ( _
    singleLine As String, _
    messageImportance As MessageImportance _
)
protected virtual void LogEventsFromTextOutput(
    string singleLine,
    MessageImportance messageImportance
)
protected:
virtual void LogEventsFromTextOutput(
    String^ singleLine, 
    MessageImportance messageImportance
)
abstract LogEventsFromTextOutput : 
        singleLine:string * 
        messageImportance:MessageImportance -> unit  
override LogEventsFromTextOutput : 
        singleLine:string * 
        messageImportance:MessageImportance -> unit
protected function LogEventsFromTextOutput(
    singleLine : String, 
    messageImportance : MessageImportance
)

Parameters

  • singleLine
    Type: System.String

    A single line of text for the method to parse.

.NET Framework Security

See Also

Reference

ToolTask Class

Microsoft.Build.Utilities Namespace