Source generator runs too early in blazor projects #48357
-
Source generators seem to not see correct content of classes when code is written in Version Used: Generator using Steps to Reproduce:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Sample repo: https://github.com/stefanloerwald/Generators.BetterBlazor File Index.razor references component Component1.razor. On start of that project, you can observe that there is an exception thrown because of the incorrectly generated code (as the source generator doesn't see the full class code). Or you simply inspect the generated code with [F12] |
Beta Was this translation helpful? Give feedback.
-
Turns out I had a bug in the analyzer which wasn't caught in the unit tests. Sorry about this! |
Beta Was this translation helpful? Give feedback.
Turns out I had a bug in the analyzer which wasn't caught in the unit tests. Sorry about this!