CodeSourceGenerator 1.0.1
See the version list below for details.
dotnet add package CodeSourceGenerator --version 1.0.1
NuGet\Install-Package CodeSourceGenerator -Version 1.0.1
<PackageReference Include="CodeSourceGenerator" Version="1.0.1" />
paket add CodeSourceGenerator --version 1.0.1
#r "nuget: CodeSourceGenerator, 1.0.1"
// Install CodeSourceGenerator as a Cake Addin #addin nuget:?package=CodeSourceGenerator&version=1.0.1 // Install CodeSourceGenerator as a Cake Tool #tool nuget:?package=CodeSourceGenerator&version=1.0.1
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
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.0
- CodeSourceGenerator.Models (>= 1.0.0)
- System.Collections (>= 4.3.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.