Source Generators and Source Control #4655
Replies: 3 comments 1 reply
-
Looks like this was an intended feature, but I can't find any reference to it being implemented.
https://github.com/dotnet/roslyn/blob/main/docs/features/source-generators.md |
Beta Was this translation helpful? Give feedback.
-
You'll want to set Example usage: |
Beta Was this translation helpful? Give feedback.
-
Necessary project changes:
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
There should be a way to allow code emitted by a Source Generator to be checked into source control.
Generated code can often be very complex. And if something breaks, the developer will need to be able to see the current and previous state of the code in order to determine what changed.
This should be an optional setting, as some people would prefer not to have generated code in source control.
Placing the generated source code in the solution tree will also make it easier to set break points in that code when debugging. (Currently this has to be done by stepping into the code, and then setting a break point in the temp file.)
Beta Was this translation helpful? Give feedback.
All reactions