dotnet / roslyn-analyzers

MIT License
1.55k stars 460 forks source link

Generate non-static class with Microsoft.CodeAnalysis.ResxSourceGenerator #7332

Open k94ll13nn3 opened 2 weeks ago

k94ll13nn3 commented 2 weeks ago

Analyzer

Microsoft.CodeAnalysis.ResxSourceGenerator

Describe the improvement

Would it be possible to add an option to make the generated class not static ? I would like to move our resx file code generation to this source generator, but we have code that uses our SharedResources class as generic (because it was not static with PublicResXFileCodeGenerator) and so we cannot use this generator without as it is.