Closed
Description
Description
Hi! Looks like it's impossible to use @ in message template, but it's important for loggers like Serilog, NLog, etc.
Reproduction Steps
I tried to add this:
[LoggerMessage(0, LogLevel.Debug, "MMC request sent {@request}")]
partial void LogRequestSent(RequestRequest request);
and i received this error:
Template '@request' is not provided as argument to the logging method
using @request in params doesn't change anything.
Expected behavior
Operator @ should be ignored in params names comparison.
Actual behavior
Error appears.
Regression?
No response
Known Workarounds
No response
Configuration
.NET 7 rc2
Visual Studio 2022 preview 6.0
Other information
No response