Formatting.MsBuildFormat(Diagnostic) Method

Definition

Returns a string that contains all information about the given diagnostic in a format that is detected and processed as a diagnostic by VS and VS Code. The string contains one-based position information if the range information is not null, assuming the given position information is zero-based.

public static string MsBuildFormat (Microsoft.VisualStudio.LanguageServer.Protocol.Diagnostic msg);
static member MsBuildFormat : Microsoft.VisualStudio.LanguageServer.Protocol.Diagnostic -> string
Public Shared Function MsBuildFormat (msg As Diagnostic) As String

Parameters

Returns

String

Applies to