Add a diagnostic suppressor for the Startup class. (example)
Add an interface that the Startup class can implement.
Developer:
Disable inline – looks very messy.
#pragma warning disable CA1822 // Mark members as static
public void ConfigureServices(IServiceCollection services)
#pragma warning restore CA1822 // Mark members as static
{
Disable in .editorconfig – applies to the whole file.
Solutions
Library:
Startup
class. (example)Startup
class can implement.Developer:
.editorconfig
– applies to the whole file.