Код: Выделить всё
public override void Initialize(IncrementalGeneratorInitializationContext context)
{
var provider = context.SyntaxProvider.CreateSyntaxProvider(FilterSyntaxNode, TransformSyntaxNode)
.Where(model => model is not null)
.Collect();
context.RegisterSourceOutput(provider, GenerateSource!);
}
Теперь рассмотрим Структуру Amporting:
-
. домен - Project Domain Ссылки на пакет источников
Подробнее здесь: https://stackoverflow.com/questions/775 ... t-assembly