CodeSourceGenerator 1.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package CodeSourceGenerator --version 1.0.0
NuGet\Install-Package CodeSourceGenerator -Version 1.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="CodeSourceGenerator" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add CodeSourceGenerator --version 1.0.0
#r "nuget: CodeSourceGenerator, 1.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install CodeSourceGenerator as a Cake Addin
#addin nuget:?package=CodeSourceGenerator&version=1.0.0

// Install CodeSourceGenerator as a Cake Tool
#tool nuget:?package=CodeSourceGenerator&version=1.0.0

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

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

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.1.1 1,266 7/1/2020
1.0.1 474 7/1/2020
1.0.0 404 6/30/2020