Open petrsvihlik opened 4 years ago
Make the automatic compile-time source generation easier. This could remove the necessity of adding MSBuild targets such as:
https://github.com/Kentico/kontent-boilerplate-net/blob/107137dedc4ffca29ce17013e20df36a3e507782/src/content/Kentico.Kontent.Boilerplate/Kentico.Kontent.Boilerplate.csproj#L39-L52
Microsoft.CodeAnalysis.ISourceGenerator
Microsoft.CodeAnalysis.GeneratorAttribute
Initial work done here: https://github.com/petrsvihlik/kontent-source-generator
Blockers
Motivation
Make the automatic compile-time source generation easier. This could remove the necessity of adding MSBuild targets such as:
https://github.com/Kentico/kontent-boilerplate-net/blob/107137dedc4ffca29ce17013e20df36a3e507782/src/content/Kentico.Kontent.Boilerplate/Kentico.Kontent.Boilerplate.csproj#L39-L52
Proposed solution
Microsoft.CodeAnalysis.ISourceGenerator
andMicrosoft.CodeAnalysis.GeneratorAttribute
.Additional context