Finally found how to handle this error with a C# Roslyn analyzer.
error AD0001: Analyzer '*' threw an exception of type 'System.ArgumentException' with message 'Reported diagnostic '*' has a source location in file '*', which is not part of the compilation being.
#csharp #roslyn #analyzer #AD0001
0
0
1
0