I noticed that the generator can use the wrong type in the emitted code when the enclosing namespace defines a LogLevel enum for instance:
This may also be caused by several other types such as JsonEncodedText, Unsafe or EventId for instance.
Adding global:: with the full namespace everywhere would fix this, but I'm not sure if you want to do that given the chance for this problem to occur is quite low, so feel free to close this issue. I wanted to notify you just in case.
The problem can be bypassed by the user by generating the messages in a separate namespace.
I noticed that the generator can use the wrong type in the emitted code when the enclosing namespace defines a
LogLevel
enum for instance:This may also be caused by several other types such as
JsonEncodedText
,Unsafe
orEventId
for instance.Adding
global::
with the full namespace everywhere would fix this, but I'm not sure if you want to do that given the chance for this problem to occur is quite low, so feel free to close this issue. I wanted to notify you just in case.The problem can be bypassed by the user by generating the messages in a separate namespace.