Vbc.LogEventsFromTextOutput Method (String, MessageImportance)

 

This API supports the product 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)

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.

Return to top
Show: