Code Source Generator
Code source generator is a visual studio analyzer which allows you to generate source files pre compilation with access to objects within the compilation. The aim of this project is so it can be used for generating any type of source file easily from a template, whether it be typescript, html, javascript or even documentation.
This project is built using .NET 5 preview and since source generators are currently still a preview feature. You will need the latest version of preview .NET 5, the latest preview of Visual Studio with the 'C# and Visual Basic Roslyn compilers' individual component installed in order to run this solution.
Features
- Templating using scriban
- Completely flexible generating
- Access to all compilation objects
- Generate any type of file
- Documentation examples
- Typescript examples
Examples
Compilation Objects
To Do
Additional Links
https://devblogs.microsoft.com/dotnet/introducing-c-source-generators/
https://github.com/dotnet/roslyn-sdk/tree/master/samples/CSharp/SourceGenerators
https://github.com/dotnet/roslyn/blob/master/docs/features/source-generators.md
https://github.com/dotnet/roslyn/blob/master/docs/features/source-generators.cookbook.md
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
License
MIT CodeSourceGenerator