-
Improvement
-
Resolution: Unresolved
-
Minor
-
Jenkins 2.319.1
Warnings Next Generation Plugin 9.9.0
Analysis Model API Plugin 10.8.0
Microsoft's C# compiler can report a warning like this via MSBuild:
C:\Projects\EndLocation\Program.cs(5,24,5,26): warning CS1584: XML comment has syntactically incorrect cref attribute 'No such thing' [C:\Projects\EndLocation\EndLocation.csproj]
The numbers between the parentheses are the starting line, starting column, ending line, and ending column. See MSBuild / Visual Studio aware error messages and message formats. Analysis-core is not yet able to parse this four-number format.
Demo for how to get a warning in this format
EndLocation.csproj:
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> <TargetFramework>net6.0</TargetFramework> <GenerateDocumentationFile>true</GenerateDocumentationFile> <ErrorEndLocation>true</ErrorEndLocation> </PropertyGroup> </Project>
Program.cs:
namespace EndLocation { class Program { /// <see cref="No such thing"/> static void Main() { } } }
Compilation with .NET SDK 6.0.100:
$ dotnet build Microsoft (R) Build Engine version 17.0.0+c9eb9dd64 for .NET Copyright (C) Microsoft Corporation. All rights reserved. Determining projects to restore... All projects are up-to-date for restore. C:\Projects\EndLocation\Program.cs(5,24,5,26): warning CS1584: XML comment has syntactically incorrect cref attribute 'No such thing' [C:\Projects\EndLocation\EndLocation.csproj] EndLocation -> C:\Projects\EndLocation\bin\Debug\net6.0\EndLocation.dll Build succeeded. C:\Projects\EndLocation\Program.cs(5,24,5,26): warning CS1584: XML comment has syntactically incorrect cref attribute 'No such thing' [C:\Projects\EndLocation\EndLocation.csproj] 1 Warning(s) 0 Error(s) Time Elapsed 00:00:02.19