title: .NET Core Crossgen2 compilation without IL code
body: <p>Is there a way to get Crossgen2 to compile an assembly without including managed (IL) code?</p>
  <p>My project type: Blazor Server (.NET 6.0).</p>
  <p>I activate use Crossgen2 with ReadyToRun settings:</p>
  <pre><code>&lt;PublishReadyToRun&gt;true&lt;/PublishReadyToRun&gt;
  </code></pre>
  <p>but the assembly still contains managed (IL) code.</p>