Replies: 2 comments
-
You cannot do this. Generators can only add new files. They cannot modify existing files. |
Beta Was this translation helpful? Give feedback.
0 replies
-
What you could do is create the enum in it's entirely. Instead of trying to add something to the enum based on a comment, create the enum from the comment - that'd allow you to add the Attribute |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
MyState.cs
and I want to modify MyState.cs to
just add
[Description("xxx")]
from commenthow to do this by IIncrementalGenerator?
Beta Was this translation helpful? Give feedback.
All reactions