Gets or sets the error regular expression. Leaving this unset will result in no output errors.

Namespace: MSBuild.ExtensionPack.Framework
Assembly: MSBuild.ExtensionPack (in MSBuild.ExtensionPack.dll) Version: 3.5.0.0

Remarks

Exec Equivalent: CustomErrorRegularExpression The regular expression object has no options set: RegexOptions.None. This can be changed in the provided expression by using the regular expression options group syntax. For information on .NET Regular Expressions: http://msdn.microsoft.com/en-us/library/hs600312%28VS.71%29.aspx Capturing groups can be defined for the following values: * SubCategory - A description of the error type * ErrorCode - The error code * HelpKeyword - Help keyword for the error * File - Path to the file * Line - The line where the error begins * Column - The column where the error begins * EndLine - The end line where the error ends * EndColumn - The end column where the error ends * Message - The error message These values are used to integrate in to MSBuild and the IDE. Examples: NMake errors: NMAKE : Nxxxx: {error message} NMAKE : fatal error Uxxxx: {error message} NMAKE : FXCOPxx: {error message} RegEx for matching NMake errors: ^NMAKE\s+:\s+(fatal\s+error\s+)?(?<ErrorCode>(FXCOP|U|N)\d+):\s+(?<Message>.*)$ File specific NMake or CS errors: filename(line) : fatal error Uxxxx: {error message} filename(line) : error CSxxxx: {error message} filename(line,column) : error CSxxxx: {error message} RegEx for matching file specific NMake or CS errors: ^(?<File>[^(]+)\((?<Line>\d+)(,(?<Column>\d+))?\)\s*:\s+(fatal\s+)?error\s+(?<ErrorCode>(U|CS)\d+):\s+(?<Message>.*)$ CS reference errors: filename: error CSxxxx: {error message} RegEx for matching CS reference errors: ^(?<File>.+?)\s*:\s+error\s+(?<ErrorCode>CS\d+):\s+(?<Message>.*)$

See Also