メソッドでロガーを呼び出すたびに、たとえば
_logger.Debug("Connecting to database...");
警告が表示されます:
CA1303 : Microsoft.Globalization:
Method 'Database.Connect()' passes a literal
string as parameter 'message' of a call to 'ILogger.Debug(string)'.
Retrieve the following string(s) from a resource table instead:
"Connecting to database...".
の関数を使用するたびにこの警告を抑制する方法はありILogger
ますか? 使用しているすべての方法でそれを抑制したくありません。