次の方法で共有


Vbc.LogEventsFromTextOutput(String, MessageImportance) Method

Definition

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

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

protected:
 override void LogEventsFromTextOutput(System::String ^ singleLine, Microsoft::Build::Framework::MessageImportance messageImportance);
protected override void LogEventsFromTextOutput (string singleLine, Microsoft.Build.Framework.MessageImportance messageImportance);
override this.LogEventsFromTextOutput : string * Microsoft.Build.Framework.MessageImportance -> unit
Protected Overrides Sub LogEventsFromTextOutput (singleLine As String, messageImportance As MessageImportance)

Parameters

singleLine
String

A single line captured from the STDOUT of the vbc compiler

messageImportance
MessageImportance

The message importance: High,Low, or Normal

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.

Applies to