realvizu/NsDepCop

Error code missing in VS Error List when issue comes from build output

realvizu opened this issue · 2 comments

When the issue is reported by the VSIX the code NSDEPCOP01 shows up.
When the issue is reported during build the Code cell is empty.
The code does show up in the output window ("warning NSDEPCOP01").

It turns out that the code is missing if the VSIX (the Roslyn DiagnosticAnalyzer) is not installed.
If the VSIX is installed then the code shows up.

Seems unrelated to my code. Must be Visual Studio's behavior.