Skip to content

Instantly share code, notes, and snippets.

@explorer14
Created July 4, 2021 19:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save explorer14/1129228a984f875713e3a7854e2e464a to your computer and use it in GitHub Desktop.
Save explorer14/1129228a984f875713e3a7854e2e464a to your computer and use it in GitHub Desktop.
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp.Syntax;
using Microsoft.CodeAnalysis.Text;
using System;
namespace DtoGenerators
{
[Generator]
public class MappedDtoGenerator : ISourceGenerator
{
public void Execute(GeneratorExecutionContext context)
{
// this is where I will generate code into the compilation process
}
public void Initialize(GeneratorInitializationContext context) {};
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment