I have a .NET project that references a library from another project via an internal NuGet server. The referenced project uses third party code analyzers (StyleCop) also referenced via NuGet and does not mark the assets as private. Consequently, these analyzers are pulled in and ran as part of my project.
I understand that analyzer rules can be suppressed using a combination of .editorconfig and/or NoWarn. However, I would like to prevent the analyzers from running at all for my project. I've tried setting ExcludeAssets=analyzers in my package reference, but this doesn't appear to have an effect.
<PackageReference Include="LibraryWithAnalyzers" Version="*" ExcludeAssets="analyzers" />
Is there something I am missing?