Skip to content

Instantly share code, notes, and snippets.

@phil-scott-78
Created April 8, 2021 02:16
Show Gist options
  • Save phil-scott-78/e4269129bb3631bd10e4a96f2a940e11 to your computer and use it in GitHub Desktop.
Save phil-scott-78/e4269129bb3631bd10e4a96f2a940e11 to your computer and use it in GitHub Desktop.
External annotations for Spectre.Console
<assembly name="Spectre.Console">
<member name="T:Spectre.Console.Cli.ICommand">
<attribute ctor="M:JetBrains.Annotations.UsedImplicitlyAttribute.#ctor(JetBrains.Annotations.ImplicitUseTargetFlags)" >
<argument>5</argument>
</attribute>
</member>
<member name="T:Spectre.Console.Cli.CommandSettings">
<attribute ctor="M:JetBrains.Annotations.UsedImplicitlyAttribute.#ctor(JetBrains.Annotations.ImplicitUseTargetFlags)" >
<argument>5</argument>
</attribute>
</member>
</assembly>
@phil-scott-78
Copy link
Author

Put this file in the root in a folder named ExternalAnnotations and Rider and Resharper will no longer complain about Spectre.Console settings and commands not being used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment