Repro code:
public static partial class ABC
{
[LoggerMessage(EventId = 0, Level = LogLevel.Debug, Message = "{foo}")]
static partial void M1(ILogger logger);
}
For TemplateHasNoCorrespondingArgument, instead of passing 't' as an argument to the diag method, it should be passing t.Key (the name of the template).
|
Diag(DiagnosticDescriptors.TemplateHasNoCorrespondingArgument, ma.GetLocation(), t); |
Actual
Template [foo, foo] is not provided as argument to the logging method
Expected
Template "foo" is not provided as argument to the logging method
cc: @geeknoid