Vbc.LogEventsFromTextOutput(String, MessageImportance) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.