roslyn:get_generated_code
Retrieve the full source code of a file generated by a source generator for a specified .NET project. Use after discovering available generated files with get_source_generators.
Instructions
View the source code produced by a source generator.
USAGE: get_generated_code(projectName: "MyApp", generatedFileName: "MyType.g.cs")
OUTPUT: Full source code of the generated file. Use get_source_generators first to discover available generated files.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectName | Yes | Project containing the generated file | |
| generatedFileName | Yes | Name of the generated file |