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. |
Answered by
jasonmalinowski
Dec 11, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@chsienki Do we already have a issue tracking this?