-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Closed
Description
Please document how to specify the version of the SARIF format as part of the ErrorLog property used by the C# compiler. This feature was added in dotnet/roslyn#37148.
<ErrorLog>log21.json,version=2.1</ErrorLog>The compiler accepts either a comma or a semicolon as the separator between the file name and version, but its --help output uses a comma.
If the ErrorLog property is set in the dotnet build command line, then the comma (or semicolon) must be percent-encoded as in dotnet build -p:ErrorLog=logcmd.json%2Cversion=2.1, to prevent the -p option from treating version as the name of a separate property.
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
- ID: 26ef35c2-6df4-26f8-32b2-9b50eb76c037
- Version Independent ID: e57ac82b-307e-163b-8172-52644b3a6baa
- Content: C# Compiler Options - errors and warnings
- Content Source: docs/csharp/language-reference/compiler-options/errors-warnings.md
- Product: dotnet-csharp
- Technology: csharp-language-reference
- GitHub Login: @BillWagner
- Microsoft Alias: wiwagn