realvizu/NsDepCop

VSIX not working in newer VS 2019 versions

Closed this issue · 2 comments

NsDepCop VSIX extension not working in VS 2019 16.9.3.
Debugging shows that NsDepCopDiagnosticAnalyzer ctor is called but Initialize never gets called.

I don't know which VS version was the last that it was working with. Just checked with VS 16.7.2 and it was working.

According to https://docs.microsoft.com/en-us/visualstudio/code-quality/install-roslyn-analyzers it might be better to package NsDepCop as a NuGet analyzer package and stop disributing it as both a VSIX package and an MsBuild task NuGet package,

This would also solve the long awaited #34 issue and would make the whole out-of-process execution unnecessary so it would solve #56 too. Also we could get rid of multiple csprojs which would make #38 a smaller effort.

New version (v2.0) is implemented as a standard Roslyn analyzer and works both in VS at code editing time and at build time (both with msbuild and dotnet). Dropped the custom MsBuild task and the Visual Studio extension. Will update the docs after a period of dogfooding.