Created
February 17, 2022 21:41
-
-
Save reupen/f2320e353554f4fa4d3693fd38c850d4 to your computer and use it in GitHub Desktop.
Example MSBuild GitHub Actions problem matcher
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"problemMatcher": [ | |
{ | |
"owner": "reupen-vs2022", | |
"pattern": [ | |
{ | |
"regexp": "^(?:\\s+\\d>)([\\w\\-:\\\\\\.]+)(?:\\((\\d+),(\\d+)\\)):\\s+(error|warning)\\s(\\w*): ([^\\[\\]]+)\\s\\[.*\\]$", | |
"file": 1, | |
"line": 2, | |
"column": 3, | |
"severity": 4, | |
"message": 6, | |
"code": 5 | |
} | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Based on an example message of:
See https://github.com/actions/toolkit/blob/main/docs/commands.md#problem-matchers and https://github.com/actions/toolkit/blob/master/docs/problem-matchers.md for more details.
A custom logger is a much more flexible solution: https://github.com/reupen/msbuild-github-logger