Open abrca opened 1 year ago
Tagging subscribers to this area: @dotnet/area-extensions-logging See info in area-owners.md if you want to be subscribed.
Author: | abrca |
---|---|
Assignees: | - |
Labels: | `untriaged`, `area-Extensions-Logging` |
Milestone: | - |
Maybe we could emit a better message here, but I don't think params are supported or useful here. The way they're listed in the template wouldn't format the actual values.
Description
Using 'params' keyword in method parameters "params object?[] args" in partial class under [LoggerMessage] attribute cause Compiler Error CS0758 - in generated code 'params' keyword is absent
Reproduction Steps
Expected behavior
Compile
Actual behavior
in source-generated file LoggerMessage.g.cs, 'params' keyword is absent in method parameters "global::System.Object?[] args"
Regression?
No response
Known Workarounds
No response
Configuration
.NET 7.0 Windows 10 x64 Visual Studio Community 2022
Other information
No response