A few years ago I remember working on an app that generate C# code files that is not Source Generator. However I cannot find it anymore and any keyword I can think of for search engines results in the newer Source Generator APIs (Microsoft.CodeAnalysis.Analyzers
). I am sorry I know this is probably a duplicate but I just can’t find it now.
It’s also not T4. The API should have something where I call something like StartNamespace("MyNamespace")
or StartClass("ClassName")
or something like that. The result should be a string for a C# source code file.
What is the API I am looking for?
1