Compartir a través de


Vbc.LogEventsFromTextOutput Method

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

This method intercepts the lines to be logged coming from STDOUT from VBC.

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.Tasks
Assembly:  Microsoft.Build.Tasks.Core (in Microsoft.Build.Tasks.Core.dll)

Syntax

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

Parameters

  • singleLine
    Type: System.String

    A single line captured from the STDOUT of the vbc compiler

Remarks

Once we see a standard vb warning or error, then we capture it and grab the next 3 lines so we can transform the string form the form of FileName.vb(line) to FileName.vb(line,column) which will allow us to report the line and column to the IDE, and thus filter the error in the duplicate case for multi-targeting, or just squiggle the appropriate token instead of the entire line.

.NET Framework Security

See Also

Reference

Vbc Class

Microsoft.Build.Tasks Namespace