You can either utilize NuGet packages to make analyzers available to everyone else or you can use the extensions so that they're strictly enforced.
Keep in mind to narrow down the scope to the single document in Visual Studio. You can do this by going into the visual studio 2019 options and changing:
C#-> Advanced> Background analysis scope