Suggestion: SourceGenerator EmbeddedResource API #49923
-
I have a project that I maintain that is implements .resx-like functionality via json files (as opposed to xml). The project uses MSBuild tasks to generate C# resource accessor classes, and also to generated embedded resources. I'd love to migrate this project to use source generators instead. Unfortunately, it appears that the source generator API doesn't currently support adding embedded resources to the compilation. Is that a feature that could be considered for a future release? It might be as simple as: GeneratorExecutionContext.AddEmbeddedResource(byte[], string logicalName); But, of course, I don't know the inner workings of the compiler, so there's quite likely more complexity than I'm imagining. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
@chsienki Do we already have a issue tracking this? |
Beta Was this translation helpful? Give feedback.
@chsienki Do we already have a issue tracking this?