2021-06-25 09:56:20 +02:00

736 B

Title Description Category Severity
Spectre1000 Use AnsiConsole instead of System.Console Usage Warning

Cause

A violation of this rule occurs when System.Console is used for common methods exposed by Spectre.Console.

Reason for rule

Methods implemented in Spectre.Console should be used over direct access to System.Console to allow for enhancements and features to be enabled.

How to fix violations

To fix a violation of this rule, change from System.Console to Spectre.Console.AnsiConsole.

How to suppress violations

#pragma warning disable Spectre1000 // Use AnsiConsole instead of System.Console

#pragma warning restore Spectre1000 // Use AnsiConsole instead of System.Console