title: How to make c# analyzer from CLI, to warn on usage of ! operator
body: <p>Ok, as usual the msft docs are utterly useless for me.  Here is my Q:</p>
  <p>How can I make an analyzer using the CLI (dotnet 6.0 SDK on linux) and have it run when I <code>dotnet build</code> other projects, and have it print warnings if the null forgiveness operator (!) is used.  I do NOT use visual studio.  Also how can I verify analyzers are even being loaded / initialized by dotnet build.</p>
  <p>For context, we require a <code>__unwrap&lt;T&gt;()</code> helper method, which checks at runtime that the object is indeed not null, instead of sacrificing safety.  And this project here does not seem to work for me: <a href="https://github.com/tom-englert/Nullable.Extended#roslyn-analyzer" rel="nofollow noreferrer">https://github.com/tom-englert/Nullable.Extended#roslyn-analyzer</a></p>