Publishing Roslyn Analyzers as NuGet packages
Using VSIX files to share code analyzers works, but isn’t an ideal solution.
Since VSIX files must be manually installed and updated, this means that with a team of software engineers, you’re never sure who has the extension installed at all or who is on which version of the extension.
Because each developer must install the VSIX themselves and keep it updated, this makes it harder to onboard new team members, release new analyzers or code fixes, or issue patches for issues found in your existing analyzers.
Thankfully, there’s a better option: NuGet package deployment.
Understanding NuGet package deployment
Analyzers and code fixes can be packed into NuGet packages and deployed to a NuGet feed so others can find them. Once in a NuGet feed, any developer on the team can install the package into one or more projects.
Once a NuGet package is installed, any developer who opens the project will automatically...