Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

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.

Namespace:  Microsoft.Build.Tasks
Assembly:  Microsoft.Build.Tasks.v4.0 (in Microsoft.Build.Tasks.v4.0.dll)

protected override void LogEventsFromTextOutput(
	string singleLine,
	MessageImportance messageImportance
)

Parameters

singleLine
Type: System.String

A single line captured from the STDOUT of the vbc compiler

messageImportance
Type: Microsoft.Build.Framework.MessageImportance

The message importance: High,Low, or Normal

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

Supported in: 4.6, 4.5, 4
Show:
© 2015 Microsoft